/* =========================
   EVENT GALLERY LANDING
========================= */

body {
    font-family: 'Bosch Sans', Arial, sans-serif;
    background: #05070d;
    color: #ffffff;
}

/* =========================
   HERO
========================= */

.event-page {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0, 88, 190, 0.32), transparent 34%),
        linear-gradient(180deg, #05070d 0%, #071326 42%, #f4f7fb 42%, #f4f7fb 100%);
}

.event-hero {
    position: relative;
    min-height: 88svh;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
}

.event-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.18) 100%),
        url("../img/hero-bg.jpg") center center / cover no-repeat;
    transform: scale(1.02);
    z-index: 1;
}

.event-hero__content {
    position: relative;
    z-index: 2;
    min-height: 88svh;
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 72px) 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 560px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.event-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 1.4vw, 18px);
}

.event-branding__logo {
    width: clamp(58px, 5vw, 86px);
    height: auto;
    display: block;
}

.event-branding__title-image {
    width: min(100%, 520px);
    height: auto;
    display: block;
}

.event-branding__subtitle {
    font-size: clamp(19px, 1.7vw, 30px);
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
}

.event-hero__card {
    background: rgba(255, 255, 255, 0.88);
    color: #102033;
    padding: clamp(28px, 3.6vw, 48px);
    border-radius: 0;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.event-hero__eyebrow,
.event-section-label {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #006ead;
}

.event-hero__title {
    margin: 0 0 18px;
    max-width: 10ch;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: #102033;
}

.event-hero__text {
    margin: 0 0 28px;
    max-width: 500px;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.48;
    color: #34475f;
}

.event-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   BUTTONS
========================= */

.event-btn,
.event-download-all,
.event-load-more,
.event-photo-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 0;
    border: 0;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.event-btn--primary,
.event-download-all,
.event-load-more {
    background: #17335c;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(23, 51, 92, 0.22);
}

.event-btn--primary:hover,
.event-download-all:hover,
.event-load-more:hover {
    background: #0f2749;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(23, 51, 92, 0.28);
}

.event-btn--outline {
    background: transparent;
    color: #17335c;
    border: 1px solid rgba(23, 51, 92, 0.32);
}

.event-btn--outline:hover {
    background: #17335c;
    color: #ffffff;
    border-color: #17335c;
}

/* =========================
   INTRO
========================= */

.event-intro {
    background: #f4f7fb;
    color: #102033;
    padding: clamp(64px, 7vw, 104px) 0 clamp(36px, 5vw, 64px);
}

.event-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: start;
}

.event-intro h2,
.event-gallery-head h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #102033;
}

.event-intro p {
    margin: 0;
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.6;
    color: #42536a;
}

/* =========================
   GALLERY
========================= */

.event-gallery-section {
    background: #f4f7fb;
    color: #102033;
    padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 8vw, 130px);
}

.event-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.event-masonry {
    column-count: 3;
    column-gap: 22px;
}

.event-photo-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 22px;
    break-inside: avoid;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.event-photo-card.is-hidden {
    display: none;
}

.event-photo-card__image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.event-photo-card__image-button img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.event-photo-card:hover .event-photo-card__image-button img {
    transform: scale(1.035);
    filter: brightness(1.04);
}

.event-photo-card__body {
    padding: 17px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.event-photo-card__name {
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: #102033;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-photo-card__download {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 10px 14px;
    background: #eef4fb;
    color: #17335c;
    font-size: 13px;
}

.event-photo-card__download:hover {
    background: #17335c;
    color: #ffffff;
}

.event-load-more-wrap {
    margin-top: 34px;
    text-align: center;
}

.event-load-more {
    min-width: 220px;
}

/* =========================
   EMPTY
========================= */

.event-empty {
    background: #ffffff;
    padding: 34px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.event-empty h3 {
    margin: 0 0 10px;
    font-weight: 700;
    color: #102033;
}

.event-empty p {
    margin: 0;
    color: #42536a;
}

/* =========================
   MODAL
========================= */

.event-photo-modal .modal-content {
    border: 0;
    border-radius: 0;
    background: #06111f;
    color: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.event-photo-modal .modal-header,
.event-photo-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.event-photo-modal .modal-title {
    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.2;
    font-weight: 700;
}

.event-photo-modal .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.event-photo-modal .modal-body {
    padding: 0;
    background: #000000;
    text-align: center;
}

.event-photo-modal .modal-body img {
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    display: block;
    margin: 0 auto;
}

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

@media (max-width: 1199.98px) {
    .event-masonry {
        column-count: 2;
    }
}

@media (max-width: 991.98px) {
    .event-hero__content {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .event-branding {
        align-items: center;
        text-align: center;
    }

    .event-hero__card {
        max-width: 620px;
        margin: 0 auto;
    }

    .event-hero__title {
        max-width: 100%;
    }

    .event-intro__inner {
        grid-template-columns: 1fr;
    }

    .event-gallery-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .event-hero {
        min-height: auto;
    }

    .event-hero__content {
        min-height: auto;
        width: min(100% - 24px, 1180px);
        padding: 30px 0 44px;
        gap: 24px;
    }

    .event-hero__bg {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.42)),
            url("../img/hero-bg.jpg") center center / cover no-repeat;
    }

    .event-branding__logo {
        width: 54px;
    }

    .event-branding__title-image {
        width: min(92vw, 380px);
    }

    .event-hero__card {
        padding: 24px 20px;
    }

    .event-hero__title {
        font-size: clamp(34px, 10vw, 46px);
    }

    .event-hero__text {
        font-size: 16px;
    }

    .event-hero__actions {
        flex-direction: column;
    }

    .event-btn,
    .event-download-all,
    .event-load-more {
        width: 100%;
    }

    .event-intro,
    .event-gallery-section {
        padding-left: 0;
        padding-right: 0;
    }

    .event-masonry {
        column-count: 1;
    }

    .event-photo-card__body {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-photo-card__name {
        white-space: normal;
    }

    .event-photo-card__download {
        width: 100%;
    }
}

/* =========================
   CORREZIONI CLIENTE
========================= */

/* Logo Bosch, In Pole Position e Ready for excellence centrati tra loro */
.event-branding {
    width: fit-content !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-self: center !important;
}

.event-branding__logo {
    margin-left: auto !important;
    margin-right: auto !important;
}

.event-branding__title-image {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.event-branding__subtitle {
    width: 100% !important;
    text-align: center !important;
    font-weight: 700 !important;
}

/* Testi label in blu scuro come il bottone */
.event-hero__eyebrow,
.event-section-label {
    color: #17335c !important;
}

/* Titoli più corposi */
.event-hero__title,
.event-intro h2,
.event-gallery-head h2 {
    font-weight: 700 !important;
    letter-spacing: -0.045em;
}

/* Se il browser supporta un peso più forte, lo forza meglio */
.event-hero__title {
    font-weight: 800 !important;
}

/* Testo introduttivo più ordinato */
.event-intro__text p {
    margin: 0 0 16px;
}

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

/* Card foto: niente nome file, solo bottone centrato */
.event-photo-card__body {
    justify-content: center !important;
}

.event-photo-card__name {
    display: none !important;
}

.event-photo-card__download {
    width: 100% !important;
    max-width: 170px;
}