/* Font declarations */
@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base font styles */
body {
    font-family: 'Neue Montreal', system-ui, 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    min-height: 100vh;
    background-image: none;
}


:root {
    --color-oggi: #00599C;
}

/* Site wrapper */
.site-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Hero section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: transparent;
    z-index: 10;
}

.hero-image-container {
    position: relative;
    height: 100vh;
    min-height: 400px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    pointer-events: none;
    background-color: transparent;
}

/* Logo in hero */
.logo {
    position: relative;
    pointer-events: auto;
    display: block;
    max-width: 300px;
    right: 0;
    float: right;
    margin-top: 30px;
}

.logo img {
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .arenas {
        justify-content: space-between !important;
    }

    .logo img {
        min-width: 250px;
    }
}

/* Arenas in hero */
.arenas {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    z-index: 11;
    pointer-events: none;
    max-width: 1280px;
}

.arena {
    text-align: center;
    pointer-events: auto;
}

.arena img {
    height: 45px;
}

.arena h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-oggi);
    text-shadow:
        -2px -2px 0 white,
        2px -2px 0 white,
        -2px 2px 0 white,
        2px 2px 0 white,
        3px 3px 5px rgba(0, 0, 0, 0.1);
    -webkit-text-stroke: 2px white;
}

.arena p {
    display: none;
}

.san-cosimato h2 {
    color: var(--color-san-cosimato);
}

.cervelletta h2 {
    color: var(--color-cervelletta);
}

.monte-ciocci h2 {
    color: var(--color-monte-ciocci);
}

.arena span.cta-link {
    pointer-events: auto;
    display: inline-block !important;
}

/* animated down arrow */
.chevron-container {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 10px;
    right: 0;
    left: 0;
    margin: 0 auto;
    bottom: 4.5%;
    z-index: 11;
}

.chevron {
    position: absolute;
    width: 28px;
    height: 2px;
    opacity: 0;
    transform: scale3d(0.5, 0.5, 0.5);
    animation: move 3s ease-out infinite;
}

.chevron:first-child {
    animation: move 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
    animation: move 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
    content: ' ';
    position: absolute;
    top: 0;
    height: 100%;
    width: 51%;
    background: #fff;
}

.chevron:before {
    left: 0;
    transform: skew(0deg, 30deg);
}

.chevron:after {
    right: 0;
    width: 50%;
    transform: skew(0deg, -30deg);
}

@keyframes move {
    25% {
        opacity: 1;

    }

    33% {
        opacity: 1;
        transform: translateY(30px);
    }

    67% {
        opacity: 1;
        transform: translateY(40px);
    }

    100% {
        opacity: 0;
        transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
    }
}

@keyframes pulse {
    to {
        opacity: 1;
    }
}

/* Today's Events Section */
.today-section {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.oggi-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.date-svg {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    margin-top: 0.5rem;
}

#today-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.today-events.single-card {
    grid-template-columns: minmax(auto, 600px);
    justify-content: center;
}

.event-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    opacity: 1;
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.arena-label {
    padding: 0.5rem 1rem;
    color: white;
    font-weight: 700;
}

.san-cosimato.arena-label {
    background-color: var(--color-san-cosimato);
}

.cervelletta.arena-label {
    background-color: var(--color-cervelletta);
}

.monte-ciocci.arena-label {
    background-color: var(--color-monte-ciocci);
}

.cta-link {
    text-align: center;
    font-size: 1.8rem;
}

.program-link {
    display: inline-block;
    margin: 0 auto;
    color: var(--cta-color);
}

.program-cta img {
    height: 90px;
    width: auto;
}

/* Styling for the navigation SVG links */
.nav-img-link {
    display: inline-block;
    margin: 0 1rem;
}

.nav-svg {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.nav-img-link:hover .nav-svg {
    transform: translateY(-2px);
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Retrospectives Section */
#retrospettive,
#eventi {
    margin: 4rem 0 2rem 0;
    padding: 0;
}

.section-heading {
    margin-bottom: 2rem;
    text-align: center;
}

.retrospectives-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.retrospective-wrapper {
    margin-bottom: 0.5rem;
}

.retrospective-card {
    background-color: white;
    border-radius: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;
}

/* Only apply these styles to the main background image */
.retrospective-card img.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.retro-location {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.location-svg {
    height: 30px;
    width: auto;
    max-width: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.6s ease;
}

.retro-cinema-text {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.director-svg {
    height: 40px;
    width: auto;
    max-width: 50%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.6s ease;
}

/* Basic styling for the text title overlay span */
.retro-cinema-text span {
    display: block;
    /* Make it block to allow text-align */
    text-align: center;
    color: transparent;
    /* Example color, adjust as needed */
    font-weight: bold;
    padding: 0.5rem;
    /* Add some padding */
    max-width: 90%;
    /* Prevent overly long titles from breaking layout */
    margin: 0 auto;
    /* Center the span itself if max-width is applied */
}

/* Horizontal colored bars for retrospectives - REMOVED */
/*
.retro-bar {
    height: 8px;
    width: 100%;
    margin-top: 4px;
}

.retro-bar.san-cosimato {
    background-color: var(--color-san-cosimato);
}

.retro-bar.cervelletta {
    background-color: var(--color-cervelletta);
}

.retro-bar.monte-ciocci {
    background-color: var(--color-monte-ciocci);
}
*/

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem;
}

/* Responsive styles */
@media (min-width: 768px) {
    .nav-links img {
        height: 18px;
    }

    .nav-links {
        gap: 1rem;
    }

    .today-events {
        grid-template-columns: repeat(3, 1fr);
    }

    .oggi-heading span:first-child {
        font-size: 3rem;
    }

    .date-text {
        font-size: 2.2rem;
    }

    .retrospectives-grid,
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-heading {
        font-size: 3rem;
    }

    .no-events {
        grid-column: 1 / -1;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Cards */
.arena-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.arena-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.event-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Calendar */
.calendar-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.calendar-scroll::-webkit-scrollbar {
    display: none;
}

.calendar-day {
    transition: background-color 0.2s ease;
}

/* Retrospective Cards */
.retrospective-card:hover img.main-image {
    transform: scale(1.05);
}

.retrospective-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.retrospective-card:hover .content {
    transform: translateY(0);
}

/* Program page styles */
.program-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.program-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Arena filters */
.arena-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.arena-filter {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}

.arena-filter.active {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Calendar */
.calendar {
    margin-bottom: 2rem;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.calendar>div {
    display: flex;
    gap: 0.5rem;
    min-width: 100%;
}

.calendar-day {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f3f4f6;
    font-weight: 500;
}

.calendar-day.has-events {
    background-color: #e5e7eb;
}

.calendar-day.active {
    background-color: #111827;
    color: white;
}

.calendar-day:hover {
    transform: translateY(-2px);
}

/* Events container */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Event card */
.event-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.event-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.event-content {
    padding: 1rem;
    flex-grow: 1;
}

.event-content br {
    margin-bottom: 0.5rem;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #666;
}

/* Guest badge */
.guest-badge {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Custom styles for Il Cinema in Piazza */

/* Add any custom styles that aren't covered by the Tailwind-like classes */

/* Example: Custom animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Example: Custom mix-blend-mode */
.mix-blend-overlay {
    mix-blend-mode: overlay;
}

/* Example: Custom min-width */
.min-w-full {
    min-width: 100%;
}

/* Example: Custom pb (padding-bottom) */
.pb-4 {
    padding-bottom: 1rem;
}

/* Example: Custom text-sm */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Example: Custom space-y-1 */
.space-y-1>*+* {
    margin-top: 0.25rem;
}

/* Example: Custom col-span-full */
.col-span-full {
    grid-column: span 1 / span 1;
}

@media (min-width: 768px) {
    .md\:col-span-full {
        grid-column: span 1 / span 1;
    }
}

.arena-svg {
    height: 45px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.date-text {
    font-size: 2.2rem;
    font-weight: 700;
    -webkit-text-fill-color: var(--color-oggi);
    -webkit-text-stroke: 4px #fff;
    paint-order: stroke fill;
    stroke-linejoin: round;
    text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Adjust hover effects for the retrospective cards */
.retrospective-card:hover img.location-svg,
.retrospective-card:hover img.director-svg {
    transform: scale(0.95);
    /* Slightly zoom out for parallax effect */
}

.retrospective-card img.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    aspect-ratio: 1 / 1;
}

.retrospective-card:hover img.main-image {
    transform: scale(1.05);
}

.retro-location,
.retro-cinema-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Added border styles */
.retrospective-card.san-cosimato {
    /* border: 10px solid var(--color-san-cosimato); */
    border: 10px solid white;
}

.retrospective-card.cervelletta {
    /* border: 10px solid var(--color-cervelletta); */
    border: 10px solid white;
}

.retrospective-card.monte-ciocci {
    /* border: 10px solid var(--color-monte-ciocci); */
    border: 10px solid white;
}

/* New styles for SVG titles */
.retro-title-svg {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 200px;
    height: auto;
    z-index: 5;
}

/* Parallax Hero */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#parallax-bg {
    z-index: 1;
}

#parallax-light-bg {
    z-index: 2;
}

#parallax-girl {
    z-index: 3;
}

#parallax-lights {
    z-index: 4;
}

#parallax-city {
    z-index: 5;
}

#parallax-trees {
    z-index: 6;
}

.arena span.cta-link {
    pointer-events: auto;
}

#today-events .event-card {
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: auto;
    /* border: 5px solid var(--color-oggi); */
}

#today-events .event-card:nth-of-type(1)>div {
    background: rgb(243 128 224 / 10%);
}

#today-events .event-card:nth-of-type(2)>div {
    background: rgb(245 120 54 / 10%);
}

#today-events .event-card:nth-of-type(3)>div {
    background: rgb(63 151 229 / 10%);
}

#today-events .event-card>div {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--table-bg);
}

#today-events .event-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    gap: 1rem;
}

#today-events .event-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#today-events .event-card .event-date {
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
}

#today-events .event-card .event-text {
    line-height: 1.5;
    flex-grow: 1;
    text-align: left;
}

#today-events .event-card .event-text strong {
    font-weight: 700;
}

.event-text a {
    color: inherit;
}

/* Programma completo styles */
.table-mobile-arrow {
    display: none;
}

.programma-section {
    margin: 3rem 0 4rem 0;
}

.programma-table-wrapper {
    width: 100%;
}

.programma-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
}

.programma-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.programma-table thead th,
.programma-table,
.programma-table tbody th {
    background: var(--table-bg);
}

.programma-header-info {
    text-align: left;
    font-weight: 700;
    border: none;
    top: 0;
    left: 0;
    z-index: 3;
}

th.programma-header-left {
    vertical-align: top;
    padding-right: 1rem !important;
    padding-bottom: 0.9rem !important;
}

table th[scope="col"]:not(:first-child):not(:last-child) {
    padding-right: 1rem;
}

.programma-header-sub {
    font-weight: 400;
    display: block;
    margin-top: 0.3em;
}

.programma-arena-header {
    vertical-align: top;
}

.programma-arena-label.san-cosimato {
    color: var(--color-san-cosimato);
}

.programma-arena-label.cervelletta {
    color: var(--color-cervelletta);
}

.programma-arena-label.monte-ciocci {
    color: var(--color-monte-ciocci);
}

.programma-arena-label {
    font-family: 'Cinema', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.programma-arena-dates {
    font-size: 1.1rem;
    color: #111;
    font-weight: 500;
}

.programma-retro-list {
    display: flex;
    margin-top: 0.5em;
    color: #111;
    flex-direction: column;
}

.programma-retro-item {
    display: inline-flex;
    align-items: center;
    margin-right: 0.7em;
    margin-bottom: 0.2em;
    font-size: 1em;
    color: #111;
}

.programma-retro-item span {
    font-size: 1em;
    color: #111;
}

.dot.san-cosimato {
    background: var(--color-san-cosimato);
}

.dot.cervelletta {
    background: var(--color-cervelletta);
}

.dot.monte-ciocci {
    background: var(--color-monte-ciocci);
}

.dot {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    margin-right: 0.4em;
}

table th[scope="col"] {
    opacity: .96;
    position: sticky;
    text-align: left;
}

.programma-table tbody th {
    text-align: left;
    left: 0;
    z-index: 1;
}

.programma-cell:last-child {
    border-right: none;
}

/* Remove border from the last programma-cell when there's a right date column */
.programma-cell:nth-last-child(2) {
    border-right: none;
}

th.programma-date-right span,
.programma-table tbody th.programma-date-right {
    text-align: right;
}

.programma-date-right {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.programma-header-right {
    text-align: right;
}

th.programma-header-right {
    vertical-align: top;
    padding-left: 1rem !important;
    padding-bottom: 0.9rem !important;
}

th.programma-header-info.programma-header-right {
    text-align: right
}

th.programma-date-right {
    border: none;
    padding: 0.7rem 0 0.7rem 1rem;
}

.programma-cell {
    padding: 0.7rem 1rem;
    min-width: 180px;
    vertical-align: top;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    font-size: 1rem;
    line-height: 1.5;
    transition: background 0.2s;
    width: 30%;
    align-content: center
}

.programma-cell.has-guest.san-cosimato {
    background: var(--color-san-cosimato);
}

.programma-cell.has-guest.cervelletta {
    background: var(--color-cervelletta);
}

.programma-cell.has-guest.monte-ciocci {
    background: var(--color-monte-ciocci);
}

.programma-weekday {
    display: block;
    font-size: 0.95em;
    color: #595959;
}

.programma-day {
    font-size: 1.15em;
    font-weight: 700;
}

.grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem
}

.arenas {
    gap: 1rem;
    justify-content: center;
}

.cinema-troisi-row {
    background: #000;
}

.cinema-troisi-cell {
    color: #fff;
    display: table-cell;
    vertical-align: middle;
    padding: 0.75em 1.2em;
    position: relative;
}

.cinema-troisi-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1rem
}

.cinema-troisi-content {
    flex: 1;
    text-align: center;
}

.ct-icon-left {
    flex: 0 0 auto;
    margin-right: 1em;
    display: flex;
    align-items: center;
}

.ct-ticket-link {
    flex: 0 0 auto;
    margin-left: 1em;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

.cinema-troisi-cell img {
    display: inline-block;
    vertical-align: middle;
    height: 2em;
    width: auto;
}

.programma-cell.event.san-cosimato {
    background: var(--color-san-cosimato);
}

.programma-cell.event.cervelletta {
    background: var(--color-cervelletta);
}

.programma-cell.event.monte-ciocci {
    background: var(--color-monte-ciocci);
}

/* LANGUAGE POPOVER */

.lang-popover {
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255 255 255 / 80%);
    color: #000;
    padding: 1em;
    border-radius: 1em;
    z-index: 100;
    box-shadow: 0 4px 24px #0005;
    display: flex;
    align-items: center;
    gap: 1em;
    min-width: 320px;
    max-width: 90vw;
    font-weight: 500;
    transition: opacity 0.3s;
}

.lang-popover-hide {
    opacity: 0 !important;
    pointer-events: none !important;
}

.lang-popover-fixed {
    position: fixed;
    top: 2em;
}

.lang-popover-btn {
    margin-left: 1em;
    padding: 0.5em 1em;
    border: none;
    border-radius: 0.5em;
    background: rgb(37 90 152);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

.lang-popover-btn:hover {
    background: rgb(35 86 145);
}

.lang-popover-close {
    background: none;
    border: none;
    color: #000;
    font-size: 1.4em;
    cursor: pointer;
    margin-right: 0.5em;
    line-height: 1;
}

.lang-popover-desktop {
    display: inline;
}

.lang-popover-mobile {
    display: none;
}

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

    .lang-popover-fixed {
        top: 13em;
    }

    .lang-popover-desktop {
        display: none;
    }

    .lang-popover-mobile {
        display: inline;
    }

    .hero-section {
        height: 100dvh;
        min-height: 100vw;
        background-color: #ff8349;
        position: relative;
        overflow: hidden;
        background-image: url('../img/2025/grainy-orange.png');
        background-repeat: repeat;
        background-size: auto;
        position: relative;
        overflow: hidden;
    }

    .hero-image-container {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80vh;
        min-height: 250px;
        width: 100%;
    }

    .parallax-layer {
        top: 0 !important;
    }

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

    .programma-section {
        padding-right: 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    img.section-heading-svg {
        height: 40px
    }

    .event-card {
        margin-bottom: 1rem;
    }

    #today-events {
        grid-template-columns: 1fr;
    }

    #today-events .event-card .card-header {
        flex-wrap: wrap;
        align-items: baseline;
    }

    .logo {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        float: none;
        margin-top: 8%;
    }

    .arenas img,
    .logo img {
        width: 75%
    }

    .arenas {
        flex-direction: column;
    }

    #today-events .event-card h3 {
        white-space: normal;
    }

    .programma-table-wrapper {
        overflow-x: scroll;
        display: block;
    }

    .programma-table th,
    .programma-cell,
    .cinema-troisi-cell,
    .cinema-troisi-cell *,
    .cinema-troisi-content,
    .cinema-troisi-content * {
        font-size: .8rem !important;
        -webkit-text-size-adjust: none !important;
        text-size-adjust: none !important;
    }

    .programma-arena-label {
        font-size: 1.5rem
    }

    /* ARROW TABLES MOBILE */
    @-moz-keyframes bounceDown {

        0%,
        20%,
        50%,
        80%,
        100% {
            -moz-transform: translateY(0);
            transform: translateY(0);
        }

        40% {
            -moz-transform: translateY(-30px);
            transform: translateY(-30px);
        }

        60% {
            -moz-transform: translateY(-15px);
            transform: translateY(-15px);
        }
    }

    @-webkit-keyframes bounceDown {

        0%,
        20%,
        50%,
        80%,
        100% {
            -webkit-transform: translateY(0);
            transform: translateY(0);
        }

        40% {
            -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
        }

        60% {
            -webkit-transform: translateY(-15px);
            transform: translateY(-15px);
        }
    }

    @keyframes bounceDown {

        0%,
        20%,
        50%,
        80%,
        100% {
            -moz-transform: translateY(0);
            -ms-transform: translateY(0);
            -webkit-transform: translateY(0);
            transform: translateY(0);
        }

        40% {
            -moz-transform: translateY(-30px);
            -ms-transform: translateY(-30px);
            -webkit-transform: translateY(-30px);
            transform: translateY(-30px);
        }

        60% {
            -moz-transform: translateY(-15px);
            -ms-transform: translateY(-15px);
            -webkit-transform: translateY(-15px);
            transform: translateY(-15px);
        }
    }

    @-webkit-keyframes bounceLeft {

        0%,
        20%,
        50%,
        80%,
        100% {
            -webkit-transform: translateX(0);
            transform: translateX(0);
        }

        40% {
            -webkit-transform: translateX(30px);
            transform: translateX(30px);
        }

        60% {
            -webkit-transform: translateX(15px);
            transform: translateX(15px);
        }
    }

    @-moz-keyframes bounceLeft {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateX(0);
        }

        40% {
            transform: translateX(30px);
        }

        60% {
            transform: translateX(15px);
        }
    }

    @keyframes bounceLeft {

        0%,
        20%,
        50%,
        80%,
        100% {
            -ms-transform: translateX(0);
            transform: translateX(0);
        }

        40% {
            -ms-transform: translateX(30px);
            transform: translateX(30px);
        }

        60% {
            -ms-transform: translateX(15px);
            transform: translateX(15px);
        }
    }

    /* /left bounce */
    /* right bounce */
    @-webkit-keyframes bounceRight {

        0%,
        20%,
        50%,
        80%,
        100% {
            -webkit-transform: translateX(0);
            transform: translateX(0);
        }

        40% {
            -webkit-transform: translateX(-30px);
            transform: translateX(-30px);
        }

        60% {
            -webkit-transform: translateX(-15px);
            transform: translateX(-15px);
        }
    }

    @-moz-keyframes bounceRight {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateX(0);
        }

        40% {
            transform: translateX(-30px);
        }

        60% {
            transform: translateX(-15px);
        }
    }

    @keyframes bounceRight {

        0%,
        20%,
        50%,
        80%,
        100% {
            -ms-transform: translateX(0);
            transform: translateX(0);
        }

        40% {
            -ms-transform: translateX(-30px);
            transform: translateX(-30px);
        }

        60% {
            -ms-transform: translateX(-15px);
            transform: translateX(-15px);
        }
    }

    /* /right bounce */
    /* assign bounce */
    .table-mobile-arrow {
        padding-right: 2.1%;
        display: block;
        text-align: right;
        font-size: 24px;
        -webkit-animation: bounceRight 2s infinite !important;
        animation: bounceRight 2s infinite !important;
        color: var(--color-oggi);
        font-weight: 600;
    }
}