/* Open Day — sezioni allineate a Figma (1153:21749, 21755, 21767, 21776, 21784, 21791) */

.openday-page {
    color: var(--semantic-text-primary);
    font-family: var(--font-family-paragraph);
}

.openday-page__block {
    width: 100%;
}

.openday-page__block--grey {
    background-color: var(--section-bg-grey);
}

.openday-page__block--white {
    background-color: #fff;
}

.openday-page__wrap {
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

/* ——— Titoli ripetuti (eyebrow + display) ——— */
.openday-page__title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.openday-page__title-stack--compact {
    gap: 16px;
}

.openday-page__eyebrow--display { margin: 0; }

.openday-page__display-xl {
    font-family: var(--font-family-title);
    font-weight: var(--font-weight-bold);
    font-size: clamp(48px, 10vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.07em;
    margin: 0;
    text-transform: uppercase;
}

.openday-page__display-xl--tight {
    letter-spacing: -0.07em;
}

.openday-page__display-md {
    font-family: var(--font-family-title);
    font-weight: var(--font-weight-bold);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.005em;
    margin: 0;
    text-transform: uppercase;
}

/* ——— Hero 1153:21749 ——— */
.openday-page__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: clamp(80px, 15vw, 180px);
    padding-bottom: 24px;
}

.openday-page__hero-photo {
    width: 100%;
    max-width: 794px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.openday-page__hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 794 / 341;
    object-fit: cover;
}

.openday-page__intro-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1208px;
    margin: 0 auto;
    padding: 48px 0 32px;
    font-family: var(--font-family-paragraph);
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.04em;
}

.openday-page__intro-columns > p {
    flex: 1 1 280px;
    max-width: 590px;
    margin: 0;
    text-align: left;
}

.openday-page__intro-columns--spacious {
    padding-top: 96px;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .openday-page__intro-columns {
        font-size: 17px;
        line-height: 1.45;
        letter-spacing: 0.02em;
        padding-top: 40px;
    }

    .openday-page__intro-columns--spacious {
        padding-top: 48px;
    }
}

/* ——— Lista sedi 1153:21755 ——— */
.openday-page__sedi-sheet {
    max-width: 894px;
    margin: 0 auto;
    padding: 0 30px 64px;
    box-sizing: border-box;
}

.openday-page__sedi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 40px;
    border-bottom: 1px solid #565656;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background-color 0.15s ease;
}

.openday-page__sedi-row:first-child {
    border-top: 1px solid #565656;
}

.openday-page__sedi-row:hover:not(.openday-page__sedi-row--muted) {
    background-color: #fafafa;
}

.openday-page__sedi-row--muted {
    cursor: default;
    opacity: 0.55;
}

.openday-page__sedi-city {
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    flex: 0 1 auto;
    max-width: min(313px, 55vw);
}

.openday-page__sedi-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.openday-page__sedi-date {
    font-family: var(--font-family-paragraph);
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
}

.openday-page__sedi-arrow {
    display: block;
    flex-shrink: 0;
}

.openday-page__sedi-arrow-spacer {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .openday-page__sedi-row {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .openday-page__sedi-city {
        max-width: 100%;
    }

    .openday-page__sedi-meta {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ——— Prossimi eventi 1153:21767 ——— */
.openday-page__events-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.openday-page__section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.openday-page__section-head--split .openday-page__title-stack {
    align-items: flex-start;
    text-align: left;
}

.openday-page__section-head--split .filter-input {
    margin-top: 0;
}

.openday-page__cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.openday-page__event-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.openday-page__event-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.openday-page__event-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 320 / 180;
    overflow: visible;
    margin-bottom: -24px;
}

.openday-page__event-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.openday-page__event-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--primary-yellow);
    padding: 0 12px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
}

.openday-page__event-badge span {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    font-weight: var(--font-weight-regular);
}

.openday-page__event-card-body {
    padding: 12px;
    padding-top: calc(12px + 24px);
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.openday-page__event-card-title {
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.1;
    margin: 0;
}

.openday-page__event-card-date {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin: 0;
    color: #000001;
}

.openday-page__empty {
    text-align: center;
    margin: 24px 0;
    font-size: 16px;
}

/* ——— Perché partecipare 1153:21776 ——— */
.openday-page__perche-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.openday-page__perche-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.openday-page__perche-photo {
    width: 100%;
    max-width: 794px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.openday-page__perche-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 794 / 341;
    object-fit: cover;
}

.openday-page__perche-inner .openday-page__intro-columns {
    padding-top: 0;
}

.openday-page__perche-cta {
    margin-top: -24px;
}

.openday-page__perche-cta .btn.border-outline.black {
    padding-left: 24px;
    padding-right: 34px;
}

/* ——— Gallery 1153:21784 ——— */
.openday-page__gallery-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.openday-page__gallery-section .openday-page__wrap {
    padding-bottom: 24px;
}

.openday-page__gallery-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 24px 64px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.openday-page__gallery-frame {
    flex: 0 0 auto;
    width: min(587px, 85vw);
    height: min(440px, 65vw);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    line-height: 0;
}

.openday-page__gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ——— FAQ 1153:21791 ——— */
.openday-page__faq-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

.openday-page__faq-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.openday-page__faq-list {
    width: 100%;
    max-width: 674px;
}

.openday-page__faq-item {
    border-bottom: 1px solid #d9d9d9;
}

.openday-page__faq-item:first-child {
    border-top: 1px solid #d9d9d9;
}

.openday-page__faq-summary {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.2;
}

.openday-page__faq-summary::-webkit-details-marker {
    display: none;
}

.openday-page__faq-q {
    flex: 1;
    text-align: left;
}

.openday-page__faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
    margin-top: 4px;
}

.openday-page__faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    margin-left: -6px;
    border-right: 2px solid var(--semantic-text-primary);
    border-bottom: 2px solid var(--semantic-text-primary);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.openday-page__faq-item[open] .openday-page__faq-icon::after {
    transform: rotate(45deg);
}

.openday-page__faq-body {
    padding: 0 16px 20px;
    font-size: var(--typography-size-body);
    line-height: 1.55;
}

.openday-page__faq-body p:first-child {
    margin-top: 0;
}

.openday-page__faq-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .openday-page__faq-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .openday-page__perche-inner {
        gap: 40px;
    }
}
