/* ====== CALENDAR 2026 PAGE ====== */

.calendar-page {
    font-family: inherit;
    color: #222;
}

/* Spaziatura di sezione */
.calendar-page section {
    padding: 40px 20px;
}

.calendar-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Titoli di sezione */
.calendar-page .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    background: var(--white);
    padding: 40px 20px;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    margin-bottom: 40px;
}

.calendar-hero-content {
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
}

.calendar-hero-title {
    color: #009ee0;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Sezioni testo semplice */
.calendar-project .intro-text,
.calendar-rocca-text p,
.calendar-bts-text p,
.final-cta-text {
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

/* Video */
.calendar-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.calendar-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Galleria 12 mesi */
.calendar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.calendar-month-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendar-month-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-bottom: 15px;
}

.calendar-month-name {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

.calendar-month-caption {
    font-weight: 600;
    margin-bottom: 10px;
}

.calendar-month-description {
    font-size: .95rem;
    line-height: 1.6;
}



.calendar-bts-image img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.calendar-bts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.calendar-bts-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.calendar-bts-card-image img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 10px;
    display: block;
}

.calendar-bts-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Famiglia Rocca */
.calendar-rocca-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.calendar-rocca-image img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

/* CTA finale */
.calendar-final-cta {
    text-align: center;
    background: #fbfbfb;
}

.calendar-final-cta .section-title {
    margin-bottom: 15px;
}

.final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.final-cta-buttons .cta-button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
}

.final-cta-buttons .cta-primary {
    background: #e53935;
    color: #fff;
}

.final-cta-buttons .cta-secondary {
    border: 1px solid #333;
    color: #333;
    background: #fff;
}

/* Responsivo */
@media (max-width: 991px) {
    .calendar-hero .hero-container,
    .calendar-bts-main,
    .calendar-rocca-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .calendar-bts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .calendar-page section {
        padding: 40px 16px;
    }

    .calendar-gallery-grid,
    .calendar-bts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .calendar-hero .hero-title {
        font-size: 2rem;
    }
}


/* ===== LIGHTBOX ===== */

.calendar-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    inset: 0;
    background: rgba(0,0,0,0.85);
    text-align: center;
}

.calendar-lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,.4);
}

.calendar-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-lightbox-close:hover {
    color: #ddd;
}

.calendar-rocca-text,
.calendar-bts-text {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}


.calendar-side-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* =====================================================
   BEHIND THE SCENES – LAYOUT VERTICALE DEFINITIVO
   ===================================================== */

/* Wrapper sezione (aria, leggibilità) */
.calendar-behind-the-scenes {
    padding: 40px 20px;
}

/* =====================================================
   TESTO CENTRATO
   ===================================================== */

.calendar-behind-the-scenes > .calendar-section-inner > p {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* =====================================================
   FOTO TEAM FULL WIDTH
   ===================================================== */

.calendar-bts-main {
    width: 75%;
    margin: 0 auto 40px;   /* spazio sotto */
}

.calendar-bts-image img {
    width: 100%;
    display: block;
    border-radius: 18px;
}


/* =====================================================
   GALLERIA BACKSTAGE – MASONRY
   ===================================================== */

.calendar-bts-grid-masonry {
    column-count: 5;           /* Desktop grande */
    column-gap: 18px;
}

.calendar-bts-item {
    display: block;
    margin-bottom: 18px;
    break-inside: avoid;
    border-radius: 14px;
    background: #f5f5f5;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.calendar-bts-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hover */
.calendar-bts-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

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

/* Laptop */
@media (max-width: 1200px) {
    .calendar-bts-grid-masonry {
        column-count: 4;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .calendar-bts-grid-masonry {
        column-count: 3;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .calendar-bts-grid-masonry {
        column-count: 2;   /* ✅ sempre 2 colonne */
    }
}

/* Molto piccolo */
@media (max-width: 480px) {
    .calendar-bts-grid-masonry {
        column-count: 2;   /* NON 1: come richiesto */
    }
}

/* Video verticale (Shorts) */
.calendar-video-embed.is-vertical {
    padding-bottom: 177.77%; /* 9:16 */
}
