/* ==========================================================================
   Bonfi Events Single Page  –  bonfi-events-single.css
   Design: Figma bonfiglioli-events-DEV / node 53-3
   ========================================================================== */


/* --------------------------------------------------------------------------
   MAIN LAYOUT
   -------------------------------------------------------------------------- */
.single-event-body {
    padding-bottom: 70px;
}

.single-event-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 50px;
    align-items: start;
}


.single-event-main,
.event-single-sidebar {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   SIDEBAR  (right column, event card overlaps hero)
   -------------------------------------------------------------------------- */
.event-single-sidebar {
    position: relative;
    padding-top: 42px;
    display: flex;
    flex-direction: column;
    row-gap: 26px;
}

/* --------------------------------------------------------------------------
   EVENT INFO CARD
   -------------------------------------------------------------------------- */

.bes-sidebar-card__shape {
    border: 1px solid #b5b5b5;
    border-radius: 15px;
    background: #fff;
}

.bes-event-card {

    padding: 28px 34px 32px;
}

.bes-event-card__date {
    font-family: var(--helvetica);
    font-size: 40px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.15;
    margin-bottom: 10px;
}

.bes-event-card__time {
    font-family: var(--helvetica);
    font-size: 20px;
    font-weight: 700;
    color: #383838;
    margin-bottom: 20px;
}

.bes-event-card__type {
    font-family: var(--helvetica);
    font-size: 20px;
    font-weight: 300;
    color: #000;
    margin-bottom: 18px;
}

.bes-event-card__title {
    font-family: var(--helvetica);
    font-size: 30px;
    font-weight: 700;
    color: #383838;
    line-height: 1.30;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   EVENT CARD — META INFO BLOCK  (Destinatari / Sede / Durata / Costo)
   -------------------------------------------------------------------------- */
.bes-event-card__divider {
    display: block;
    width: 100%;
    margin: 15px 0;
    overflow: visible;
}

.bes-event-card__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bes-event-card__meta-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--helvetica);
    font-size: 20px;
    line-height: 1.25;
    color: #383838;
}

.bes-event-card__meta-label {
    font-weight: 700;
    flex-shrink: 0;
}

.bes-event-card__meta-label::after {
    content: ":";
}

.bes-event-card__meta-value {
    font-weight: 400;
}

.bes-event-card__notes {
    font-family: var(--helvetica);
    font-size: 15px;
    font-weight: 400;
    color: #383838;
    line-height: 1.25;
}

.bes-event-card__notes p {
    margin: 0 0 2px;
}

.bes-event-card__notes p:last-child {
    margin-bottom: 0;
}

.bes-event-card__group-discount {
    display: block;
    font-family: var(--helvetica);
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #32468C;
    text-decoration: none;
    margin-top: 16px;
}

.bes-event-card__group-discount:hover {
    color: #32468C;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   ISCRIVITI CTA BANNER
   -------------------------------------------------------------------------- */
.bes-cta-banner {
    background-image: url(../images/event-single/ev_card_bt_shape.svg);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    border-radius: 0 0 15px 15px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 82px;
}

.bes-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--helvetica);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bes-cta-banner__btn:hover,
.bes-cta-banner__btn:focus {
    color: #fff;
    opacity: 0.85;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   SIDEBAR INFO CARDS
   -------------------------------------------------------------------------- */
.bes-sidebar-card {
    background: #fff;
    border: 1px solid #b5b5b5;
    border-radius: 15px;
    padding: 24px;
}

.bes-sidebar-card--gray {
    background: #F4F4F4;
}

.bes-sidebar-card__heading {
    font-family: var(--helvetica);
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: normal;
    padding: 0;
    background: none;
}

.bes-sidebar-card__text {
    font-family: var(--helvetica);
    font-size: 12px;
    font-weight: 300;
    color: #000;
    line-height: normal;
    margin-bottom: 0;
}

.bes-sidebar-card__text p {
    margin-bottom: 8px;
}

.bes-sidebar-card__text p:last-child {
    margin-bottom: 0;
}

.bes-sidebar-card__iso-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.bes-sidebar-card__iso-logo {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.bes-sidebar-card__link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    display: block;
}

.bes-sidebar-card__link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   MAIN CONTENT  (left column)
   -------------------------------------------------------------------------- */
.single-event-main {
    padding-top: 72px;
}

.bes-main__headline {
    font-family: var(--helvetica);
    font-size: 25px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.3;
    margin-bottom: 22px;
}

.bes-main__section-title {
    font-family: var(--helvetica);
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
    margin-top: 28px;
    margin-bottom: 12px;
}

.bes-main__content {
    font-family: var(--helvetica);
    font-size: 15px;
    color: #090909;
    line-height: normal;
}

.bes-main__content h2,
.bes-main__content h3,
.bes-main__content h4,
.bes-main__content h5 {
    font-family: var(--helvetica);
    color: var(--blue);
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 16px;
}

.bes-main__content h2 {
    font-size: 25px;
}

.bes-main__content h3 {
    font-size: 20px;
}

.bes-main__content ul,
.bes-main__content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.bes-main__content p {
    margin-top: 0;
    margin-bottom: 18px;
}

.bes-main__content p:last-child {
    margin-bottom: 0;
}

.bes-main__content ul,
.bes-main__content ol {
    margin-top: 0;
}

.bes-main__content a {
    color: #090909;
    text-decoration: underline;
}

.bes-main__objective {
    margin-bottom: 36px;
}

.bes-main__objective>h2 {
    font-family: var(--helvetica);
    font-size: 30px;
    font-weight: 700;
    color: #32468C;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 0;
}

.bes-main__content blockquote {
    font-family: var(--helvetica);
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    color: #32468C;
    line-height: normal;
    margin: 60px 0 45px 0;
    padding: 0;
    border: none;
    background: none;
}

/* --------------------------------------------------------------------------
   IMAGE BLOCKS  (reusable: logo card + photo card)
   -------------------------------------------------------------------------- */

.bes-image-block {
    border: 1px solid #B5B5B5;
    border-radius: 15px;
    overflow: hidden;
    height: 141px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
    margin-top: 28px;
}

.bes-image-block {
    margin-bottom: 32px;
}

.bes-image-block img {
    width: 100%;
    object-fit: contain;
}

.bes-image-block.bg-gray {
    background: #f4f4f4;
    padding: 8px 9px;
    align-items: stretch;
    justify-content: stretch;
}

.bes-image-block.bg-gray img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   LOCATION NOTE
   -------------------------------------------------------------------------- */
.bes-location-note {
    margin-top: 75px;
    font-family: var(--helvetica);
    font-size: 15px;
    color: #090909;
    line-height: normal;
    word-break: break-word;
}

.bes-location-note p {
    margin-bottom: 10px;
}

.bes-location-note p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   PROGRAM ACCORDIONS  (CSS-only via <details>/<summary>)
   -------------------------------------------------------------------------- */
.bes-accordion_wrap {
    margin-top: 16px;
}

/* SVG background lives on the div wrapper — always applied */
div.bes-accordion {
    background-image: url(../images/event-single/accordion-shape.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    background-size: cover;
    border-radius: 22px;
    overflow: hidden;
}

div.bes-accordion>details>summary {
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 75px;
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--helvetica);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    line-height: normal;
}

div.bes-accordion>details>summary::-webkit-details-marker {
    display: none;
}

div.bes-accordion>details>summary::marker {
    display: none;
}

.bes-accordion__chevron {
    flex-shrink: 0;
    line-height: 0;
    transition: transform 0.25s;
}

.bes-accordion__chevron svg {
    height: 23px;
}

div.bes-accordion>details[open]>summary .bes-accordion__chevron {
    transform: rotate(180deg);
}

/* accordion body */
.bes-accordion__body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 32px 45px 16px 32px;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    font-family: var(--helvetica);
}

.bes-accordion__body p {
    margin-bottom: 0;
}

.bes-accordion a {
    color: #fff;
    text-decoration: underline;
}

/* sub-accordions inside main accordion body */
.bes-sub-accordion {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.25);
    padding: 16px 0;
}

.bes-sub-accordion:last-child {
    border-bottom: 0;
}

.bes-sub-accordion__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bes-sub-accordion__header .bes-sub-accordion__body {
    font-family: var(--helvetica);
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    line-height: normal;
}

.bes-sub-accordion__time {
    flex-shrink: 0;
}

.bes-sub-accordion__title {
    flex: 1;
    min-width: 0;
}

/* Styling for 2nd accordion item (Programma del Corso) when open */
div.bes-accordion>details:nth-of-type(2)[open] {
    background-image: url(../images/event-single/accordion-shape-light.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 0 18px 18px;
}

div.bes-accordion>details:nth-of-type(2)[open]>summary {
    color: #32468C;
}

div.bes-accordion>details:nth-of-type(2)[open] .bes-accordion__body {
    color: #383838;
}

div.bes-accordion>details:nth-of-type(2)[open] a {
    color: #32468C;
    text-decoration: underline;
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   FORM CARD  (white card, inside main content column)
   -------------------------------------------------------------------------- */
.bes-form-card {
    margin-top: 58px;
    background-image: url(../images/event-single/ev_form_bg.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 14px 0 14px 14px;
    overflow: hidden;
}

.bes-form-card__body {
    padding: 33px 34px 24px 42px;
}

.bes-form-card__title {
    font-family: var(--helvetica);
    font-size: 24px;
    font-weight: 700;
    color: #000;
    max-width: 306px;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 28px;
}

/* form fields */
.bes-form__field {
    margin-bottom: 12px;
}

.bes-form__label {
    font-family: var(--helvetica);
    font-size: 15px;
    color: #000;
    display: block;
    margin-bottom: 4px;
}

.bes-form__input {
    background: rgba(227, 233, 237, 0.2);
    border: 0.5px solid var(--blue);
    border-radius: 15px;
    color: #090909;
    padding: 10px 16px;
    width: 100%;
    font-family: var(--helvetica);
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    height: 45px;
}

.bes-form__input::placeholder {
    color: rgba(9, 9, 9, 0.35);
}

.bes-form__input:focus {
    border-color: var(--blue);
    background: rgba(227, 233, 237, 0.35);
}

/* privacy checkboxes */
.bes-form__privacy {
    margin-top: 20px;
    margin-bottom: 4px;
}

.bes-form__checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.bes-form__checkbox {
    flex-shrink: 0;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border: 0.5px solid var(--blue);
    border-radius: 50%;
    background: rgba(227, 233, 237, 0.2);
    cursor: pointer;
}

.bes-form__checkbox:checked {
    background: var(--blue);
}

.bes-form__checkbox-label {
    font-family: var(--helvetica);
    font-size: 12px;
    color: #090909;
    line-height: 1.55;
    cursor: pointer;
}

.bes-form__checkbox-label a {
    color: #090909;
    text-decoration: underline;
}

/* footer bar with dark blue curved background */
.bes-form-card__footer {
    background-image: url(../images/event-single/ev_form_bt_shape.svg);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;
}

/* submit button */
.bes-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0;
    font-family: var(--helvetica);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.bes-form__submit:hover {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   CERTIFICATIONS
   -------------------------------------------------------------------------- */
.bes-certifications {
    position: relative;
    z-index: 0;
    background: #E4E9ED;
    padding: 64px 0 72px;
}

/* Concave notch — top-left (cropped from certificate_bg.svg) */
.bes-certifications::before {
    content: '';
    position: absolute;
    top: -86.9px;
    left: 0;
    width: 160px;
    height: 90px;
    background-color: #fff;
    background-image: url(../images/event-single/certificate_bg_tl.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Concave notch — bottom-right (cropped from certificate_bg.svg) */
.bes-certifications::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 210px;
    height: 90px;
    background-color: #fff;
    background-image: url(../images/event-single/certificate_bg_br.svg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

.bes-certifications__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.bes-cert-left {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.bes-cert-left__image {
    flex-shrink: 0;
    width: 160px;
}

.bes-cert-left__image img {
    width: 100%;
    height: auto;
}

.bes-cert-left__body {
    flex: 1;
}

.bes-cert-divider {
    width: 1px;
    background: #b5b5b5;
    align-self: stretch;
    min-height: 100px;
}

.bes-cert-right {
    padding-left: 10px;
}

.bes-cert__title {
    font-family: var(--helvetica);
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.35;
    margin-bottom: 0;
}

.bes-cert__title--dark {
    font-size: 24px;
    color: #000;
}

.bes-cert__text {
    font-family: var(--helvetica);
    font-size: 15px;
    color: #090909;
    line-height: normal;
    margin-top: 12px;
}

.bes-cert__text--dark {
    color: #383838;
}

/* --------------------------------------------------------------------------
   TESTIMONIALS  (full-width auto-scroll slider)
   -------------------------------------------------------------------------- */
.bes-testimonials {
    padding: 130px 0;
    overflow: hidden;
}

.bes-testimonials__heading {
    font-family: var(--helvetica);
    font-size: 30px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 60px;
}

/* Full-width slider viewport */
.bes-testimonials__slider-wrap {
    width: 100%;
    overflow: hidden;
}

/* Scrolling track — 6 cards (3 original + 3 duplicate).
   padding-right: 25px adds the trailing gap so translateX(-50%)
   lands exactly at the start of the 4th card → seamless loop. */
.bes-testimonials__track {
    display: flex;
    gap: 25px;
    padding-right: 25px;
    width: max-content;
    animation: bes-testimonials-scroll 35s linear infinite;
    will-change: transform;
}

.bes-testimonials__track:hover {
    animation-play-state: paused;
}

@keyframes bes-testimonials-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Individual card */
.bes-testimonial {
    width: 419px;
    flex-shrink: 0;
    background: rgba(227, 233, 237, 0.35);
    border-radius: 15px;
    padding: 20px 21px 24px;
}

.bes-testimonial__quote {
    font-family: var(--helvetica);
    font-size: 13px;
    color: #090909;
    line-height: normal;
    margin-bottom: 16px;
    border: none;
    padding: 0;
    quotes: none;
    background: none;
}

.bes-testimonial__quote::before,
.bes-testimonial__quote::after {
    content: none;
}

.bes-testimonial__author {
    font-family: var(--helvetica);
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    color: var(--blue);
    margin-bottom: 2px;
}

.bes-testimonial__company {
    font-family: var(--helvetica);
    font-size: 13px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .single-event-layout {
        grid-template-columns: 1fr 400px;
    }
}

@media (max-width: 1080px) {
    .single-event-layout {
        grid-template-columns: 1fr 360px;
        gap: 28px;
    }

    .bes-event-card__date {
        font-size: 34px;
    }

    .bes-event-card__title {
        font-size: 24px;
    }

    .bes-certifications__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bes-cert-divider {
        width: 100%;
        height: 1px;
        min-height: 0;
    }
}

@media (max-width: 992px) {
    .single-event-layout {
        grid-template-columns: 1fr;
    }
    
        div.bes-accordion>details>summary {
        gap: 16px;
    }

    .bes-sidebar {
        margin-top: 0;
        order: -1;
    }

    .bes-hero__left {
        max-width: 100%;
    }

    .bes-hero__title {
        font-size: 30px;
    }

    .bes-form-inner {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .bes-hero {
        min-height: 360px;
    }

    .bes-hero__title {
        font-size: 24px;
    }

    .bes-event-card__date {
        font-size: 28px;
    }

    .bes-event-card__time {
        font-size: 17px;
    }

    .bes-event-card__type {
        font-size: 17px;
    }

    .bes-event-card__title {
        font-size: 20px;
    }

    div.bes-accordion>details>summary {
        font-size: 18px;
        padding: 12px 18px;
    }

    .bes-program-row {
        font-size: 15px;
        flex-direction: column;
        gap: 4px;
    }

    .bes-form-section {
        padding: 48px 0 56px;
    }

    .bes-main {
        padding-top: 28px;
    }

    .bes-certifications {
        padding: 40px 0 48px;
    }
}

@media (max-width: 480px) {
    .bes-hero {
        min-height: 300px;
    }

    .bes-hero__inner {
        padding-bottom: 32px;
    }

    .bes-hero__title {
        font-size: 20px;
    }

    .bes-event-card {
        padding: 22px 20px 24px;
    }

    .bes-cert-left {
        flex-direction: column;
    }

    .bes-cert-left__image {
        width: 70px;
    }
}