* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige: #F5F1ED;
    --cream: #FEFCF9;
    --stone-dark: #1a1a1a;
    --stone: #3a3a3a;
    --stone-light: #8B8680;
    --accent: #A63D33;
    --accent-light: #D97757;
    --border: #D4CFCA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('images/paper-1.5.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--stone-dark);
    line-height: 1.6;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-stagger .film-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-stagger .film-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.film-card:nth-child(1).revealed { transition-delay: 0.1s; }
.film-card:nth-child(2).revealed { transition-delay: 0.2s; }
.film-card:nth-child(3).revealed { transition-delay: 0.3s; }
.film-card:nth-child(4).revealed { transition-delay: 0.4s; }
.film-card:nth-child(5).revealed { transition-delay: 0.5s; }

.event-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.event-card:nth-child(1).revealed { transition-delay: 0.1s; }
.event-card:nth-child(2).revealed { transition-delay: 0.2s; }
.event-card:nth-child(3).revealed { transition-delay: 0.3s; }

/* ===== CONSTRUCTION BANNER ===== */
.construction-banner {
    background-color: #F59E0B;
    color: #1a1a1a;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.construction-banner a {
    color: #1a1a1a;
    text-decoration: underline;
    transition: opacity 0.2s;
    font-weight: 700;
}

.construction-banner a:hover {
    opacity: 0.7;
}

/* ===== INFO BAR ===== */
.info-bar {
    background-color: var(--accent);
    color: var(--cream);
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
}

.info-bar a {
    color: var(--cream);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.info-bar a:hover {
    opacity: 0.8;
}

/* ===== NAVIGATION ===== */
nav {
    background-color: var(--beige);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 0.75rem;
    color: var(--stone-dark);
    font-weight: 350;
    line-height: 1.4;

    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.8;
}

.nav-logo-text {
    display: block;
}

.nav-main {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-main li {
    position: relative;
}

.nav-main a {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--stone-light);
}

.nav-main a:first-child {
    color: var(--accent);
}

.nav-main a:hover {
    color: var(--stone-dark);
}

/* ===== UTILITY CLASSES ===== */
.desktop-only {
    display: flex !important;
}

.nav-languages-mobile {
    display: none !important;
}

/* ===== NAV LANGUAGES ===== */
.nav-languages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.nav-languages button {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    color: var(--stone-light);
    font-family: inherit;
}

.nav-languages button.active {
    color: var(--accent);
}

.nav-languages button:hover {
    color: var(--stone-dark);
}

.nav-languages span {
    color: var(--border);
    margin: 0 0.3rem;
}

/* ===== DROPDOWN MENU (SOTTOMENU) ===== */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    list-style: none;

    /* attaccato alla voce INTERVISTE */
    top: calc(100% - 1px);
    left: 0;

    width: max-content;
    min-width: 160px;

    background-color: var(--beige);

    border: 1px solid var(--border);
    border-radius: 2px;

    box-shadow: 0 8px 16px rgba(0,0,0,.1);

    padding: .5rem 0;
    margin: 0;

    z-index: 200;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-menu a {
    display: block;

    padding: .6rem 1rem;

    text-align: left;

    white-space: nowrap;

    font-size: .8rem;

    color: var(--stone-light);
}

.dropdown-menu a:hover {
    color: var(--stone-dark) !important;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Mostra il sottomenu al passaggio del mouse (Desktop) */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== HAMBURGER MENU PERSONALIZZATO ===== */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

.hamburger-icon,
.hamburger-icon-close {
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.hamburger.active .hamburger-icon {
    display: none;
}

.hamburger.active .hamburger-icon-close {
    display: block !important;
}

.nav-main.mobile-hidden {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    left: -100vw;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 241, 237, 0.8);
    z-index: -1;
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 67%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.8;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-right {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    z-index: 2;
}

.film-strip {
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.95;
    width: 900px;
    height: auto;
}

.film-strip img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.6;
}

.hero-sidebar-label {
    font-size: 0.7rem;
    color: var(--beige);
    font-weight: 300;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 2rem;
}

.hero-intro {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-subsidiary-text {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.4;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 450;
    line-height: 1.1;
    color: var(--cream);
    margin-bottom: 2rem;
}

.hero-divider {
    width: 200px;
    height: 1px;
    background-color: var(--accent);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 450;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 0.9rem;
    font-weight: 350;
    color: var(--stone-dark);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* ===== FEATURED QUOTE SECTION ===== */
.featured-quote-section {
    background-color: rgba(245, 241, 237, 0.6);
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.featured-quote-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.featured-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--stone-dark);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.featured-quote-author {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--stone-light);
    letter-spacing: 0.5px;
}

.featured-quote-author-name {
    color: var(--accent);
    font-weight: 600;
}

/* ===== INTRODUCTION SECTION ===== */
.intro-section {
    background-color: rgba(254, 252, 249, 0.5);
    padding: 5rem 2rem;
    position: relative;
}

.intro-bg-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('images/Yervant-Gianikian-e-Angela-Ricci-Lucchi.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
}

.intro-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--stone-dark);
    line-height: 2;
    font-family: 'Playfair Display', serif;
}

.intro-text p {
    margin-bottom: 1.5rem;
}

/* ===== FILMS SECTION ===== */
.films-section {
    background-color: rgba(245, 241, 237, 0.5);
    padding: 5rem 2rem;
}

.films-container {
    max-width: 1400px;
    margin: 0 auto;
}

.films-header {
    margin-bottom: 4rem;
}

.films-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 2rem;
}

.films-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--stone-light);
    line-height: 1.8;
    max-width: 600px;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.film-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.film-image {
    height: 240px;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 3/5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.film-card:hover .film-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.film-frame-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.film-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.film-info {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--stone-light);
    line-height: 1.6;
}

.films-all-link {
    text-align: right;
}

.films-all-link a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stone-dark);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.films-all-link a:hover {
    color: var(--accent);
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    background-color: rgba(254, 252, 249, 0.5);
    padding: 5rem 2rem;
}

.quote-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.quote-image {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-left: -8rem;
    background-color: transparent;
    padding: 3rem;
    padding-left: 3rem;
    border-radius: 4px;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--stone-dark);
    line-height: 1.6;
    font-style: italic;
}

.quote-attribution {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--stone-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-attribution-role {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--stone-light);
    margin-top: 0.5rem;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    background-color: rgba(245, 241, 237, 0.5);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.events-header {
    margin-bottom: 3rem;
}

.events-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--stone-dark);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    padding: 2rem;
    border-left: 3px solid var(--accent);
    background-color: var(--cream);
    background-image: url('images/empty-film-strip.png');
    background-repeat: repeat-x;
    background-size: 50% 100%;
    background-position: left center;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(254, 252, 249, 0.94);
    pointer-events: none;
    border-radius: 2px;
    z-index: 0;
}

.event-date,
.event-title,
.event-location,
.event-description {
    position: relative;
    z-index: 1;
}

.event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateX(8px);
}

.event-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 0.5rem;
}

.event-location {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--stone-light);
    margin-bottom: 1rem;
}

.event-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--stone-dark);
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--stone-dark);
    color: var(--cream);
    padding: 4rem 2rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.footer-section h3 {
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.8;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-contact a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--cream);
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link-group a {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-group a:hover {
    color: var(--accent-light);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.footer-socials a {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--stone-light);
}

.footer-copyright {
    font-weight: 300;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: var(--beige);
    padding: 1rem 2rem;
    font-size: 0.8rem;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--stone-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--stone-dark);
}

.breadcrumb span {
    color: var(--border);
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: var(--accent);
}

/* ===== INTERVIEWS HERO SECTION ===== */
  .section-hero {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-hero, url('images/i-diari-di-angela-frame.jpg'));
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.section-hero-container {
            max-width: 1400px;
            margin: 0 auto;

            position: relative;
            z-index: 1;
}

.section-hero.contatti {
    --bg-hero: url('images/studio-gianikian.jpg');
}
.section-hero.interviste {
    --bg-hero: url('images/i-diari-di-angela-frame.jpg');
}
.section-hero.eventi {
    --bg-hero: url('images/i-diari-di-angela-frame.jpg');
}
.section-hero.policy {
    --bg-hero: url('images/la-marcia-delluomo.jpg');
}
.section-hero.biografia {
    --bg-hero: url('images/mart-frame.jpg');
}
.section-hero.film {
    --bg-hero: url('images/la-marcia-delluomo.jpg');
}
.section-hero.omaggi {
    --bg-hero: url('images/mart-frame.jpg');
}

.section-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 0.5rem;
}

.section-hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

/* ===== FILTER SECTION ===== */
.interviews-filters {
    background-color: var(--cream);
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 2px;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    
    position: relative;
    overflow: hidden;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stone-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--stone-dark);
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--cream);
}

.filter-select:hover {
    border-color: var(--accent);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(166, 61, 51, 0.1);
}

.interviews-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/seamless-grunge-scratched-texture.jpg');
    background-size: cover;
    background-attachment: scroll;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.interviews-filters > * {
    position: relative;
    z-index: 1;
}

/* ===== VIDEOS CONTAINER ===== */
.videos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background-color: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.video-card:nth-child(1) { transition-delay: 0.1s; }
.video-card:nth-child(2) { transition-delay: 0.2s; }
.video-card:nth-child(3) { transition-delay: 0.3s; }
.video-card:nth-child(4) { transition-delay: 0.1s; }
.video-card:nth-child(5) { transition-delay: 0.2s; }
.video-card:nth-child(6) { transition-delay: 0.3s; }

.video-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.video-card:hover .video-thumbnail::after {
    background-color: rgba(0, 0, 0, 0.3);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(166, 61, 51, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid var(--cream);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-card:hover .video-play-button {
    background-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.video-duration {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--stone-dark);
    line-height: 1.3;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--stone-light);
    margin-top: auto;
}

.video-date {
    font-weight: 300;
}

.video-description {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--stone);
    line-height: 1.6;
}

/* ===== MODAL VIDEO ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 2px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: var(--accent-light);
}

/* ===== NO VIDEOS MESSAGE ===== */
.no-videos {
    text-align: center;
    padding: 2rem;
    color: var(--stone-light);
    font-style: italic;
    grid-column: 1 / -1;
}

/* ===== LOADING STATE ===== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--stone-light);
    grid-column: 1 / -1;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    color: var(--stone-dark);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination span.active {
    background-color: var(--accent);
    color: var(--cream);
    border-color: var(--accent);
}

.nav-back-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--stone-light);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-back-link:hover {
    color: var(--stone-dark);
}

/* ===== ARTICLES CONTAINER ===== */
.articles-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background-color: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    border-left: 3px solid var(--accent);
}

.article-card:nth-child(1) { transition-delay: 0.1s; }
.article-card:nth-child(2) { transition-delay: 0.2s; }
.article-card:nth-child(3) { transition-delay: 0.3s; }
.article-card:nth-child(4) { transition-delay: 0.1s; }
.article-card:nth-child(5) { transition-delay: 0.2s; }
.article-card:nth-child(6) { transition-delay: 0.3s; }

.article-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-image {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    justify-content: space-between;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.article-publication {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--stone-light);
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--stone-dark);
    line-height: 1.3;
}

.article-excerpt {
    font-size: 0.95rem;
    font-weight: 350;
    color: var(--stone);
    line-height: 1.7;
}

.article-footer {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    justify-content: space-between;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tag {
    font-size: 0.75rem;
    color: var(--stone-light);
    padding: 0.3rem 0.7rem;
    background-color: rgba(166, 61, 51, 0.05);
    border-radius: 2px;
}

.article-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.article-read-link:hover {
    color: var(--accent);
}

.article-read-link .arrow {
    transition: transform 0.3s ease;
}

.article-card:hover .article-read-link .arrow {
    transform: translateX(4px);
}

/* ===== NO ARTICLES MESSAGE ===== */
.no-articles {
    text-align: center;
    padding: 2rem;
    color: var(--stone-light);
    font-style: italic;
}

/* ===== PAGE HEADER ===== */
.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 450;
    color: var(--stone-dark);
    margin-bottom: 1rem;
}

.header-divider {
    width: 150px;
    height: 1px;
    background-color: var(--accent);
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--stone-light);
    font-weight: 350;
}

/* ===== POLICY CONTENT SECTION ===== */
.policy-section {
    background-color: rgba(254, 252, 249, 0.75);
    padding: 4rem 2rem;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
}

.policy-block {
    margin-bottom: 3rem;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.policy-text {
    font-size: 0.95rem;
    font-weight: 350;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-list {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.policy-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--stone);
    line-height: 1.7;
}

.policy-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.policy-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background-color: var(--cream);
    border: 1px solid var(--border);
}

.policy-table th, 
.policy-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.policy-table th {
    background-color: var(--beige);
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--stone-dark);
}

.policy-table tr:last-child td {
    border-bottom: none;
}

.policy-card {
    background-color: var(--cream);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.policy-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--stone-dark);
    margin-bottom: 0.5rem;
}

/* PAGINAZIONE */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.pagination-btn:hover {
    background-color: #fff;
    color: #000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-number:hover:not(.active) {
    border-color: #000;
    background-color: #f5f5f5;
}

.pagination-number.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.pagination-ellipsis {
    color: #999;
    padding: 0 0.5rem;
}

.pagination-info {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* ===== TIMELINE SECTION ===== */
.bio-timeline-section {
    background-color: rgba(254, 252, 249, 0.5);
    padding: 5rem 2rem;
}

.bio-timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1).revealed { transition-delay: 0.1s; }
.timeline-item:nth-child(2).revealed { transition-delay: 0.2s; }
.timeline-item:nth-child(3).revealed { transition-delay: 0.3s; }
.timeline-item:nth-child(4).revealed { transition-delay: 0.4s; }
.timeline-item:nth-child(5).revealed { transition-delay: 0.5s; }
.timeline-item:nth-child(6).revealed { transition-delay: 0.6s; }
.timeline-item:nth-child(7).revealed { transition-delay: 0.7s; }
.timeline-item:nth-child(8).revealed { transition-delay: 0.8s; }

.timeline-item-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) .timeline-item-content {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-item-content {
    flex-direction: row;
}

.timeline-image {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 4px;
    overflow: hidden;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: var(--beige);
}

.timeline-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: var(--accent);
    border: 3px solid var(--cream);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 3px var(--beige);
}

.timeline-content {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 280px;
}

.timeline-content:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--stone-dark);
    margin-bottom: 0.8rem;
}

.timeline-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--stone-dark);
    line-height: 1.8;
}

.timeline-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(166, 61, 51, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

/* ===== EVENTI PAGE - EXPANDED EVENT CARDS ===== */
 
.events-page-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
 
.events-page-card {
    background-color: var(--cream);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    border-left: 3px solid var(--accent);
}
 
.events-page-card:nth-child(1) { animation-delay: 0.1s; }
.events-page-card:nth-child(2) { animation-delay: 0.2s; }
.events-page-card:nth-child(3) { animation-delay: 0.1s; }
.events-page-card:nth-child(4) { animation-delay: 0.2s; }
.events-page-card:nth-child(5) { animation-delay: 0.1s; }
.events-page-card:nth-child(6) { animation-delay: 0.2s; }

.events-page-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
 
.events-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
 
.events-page-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: var(--beige);
    flex-shrink: 0;
}
 
.events-page-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
    justify-content: space-between;
}
 
.events-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
 
.events-page-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
 
.events-page-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(166, 61, 51, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    display: inline-block;
    width: fit-content;
}
 
.events-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--stone-dark);
    line-height: 1.4;
}
 
.events-page-location {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--stone-light);
    line-height: 1.5;
}
 
.location-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}
 
.events-page-description {
    font-size: 0.95rem;
    font-weight: 350;
    color: var(--stone);
    line-height: 1.7;
}
 
.events-page-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}
 
.events-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}
 
.events-page-link:hover {
    color: var(--accent-light);
    gap: 0.75rem;
}
 
.events-page-link .arrow {
    transition: transform 0.2s;
}
 
.events-page-link:hover .arrow {
    transform: translateX(3px);
}

/* ===== FILTERS SECTION ===== */
 
.films-filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
 
.films-filter-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 100px;
}
 
.films-filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid #D4CFCA;
    border-radius: 3px;
    background-color: #FEFCF9;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
 
.films-filter-select:hover {
    border-color: #A63D33;
}
 
.films-filter-select:focus {
    outline: none;
    border-color: #A63D33;
    box-shadow: 0 0 0 3px rgba(166, 61, 51, 0.1);
}
 
/* ===== FILMS LIST PAGE CONTAINER ===== */
.films-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
 
/* ===== FILMS LIST GRID - CONFLITTO CON HOMEPAGE ===== */
.flp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
 
/* ===== FILM LIST CARD ===== */
.film-card-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
    border-radius: 2px;
    overflow: hidden;

    opacity: 0;
    transform: translateY(30px);
}
 
.film-card-item:hover {
    transform: translateY(-8px) scale(1.03);
}

.film-card-item.revealed {
    opacity: 1;
    transform: translateY(0);
}
 
.film-card-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: --cream;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.film-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}
 
.film-card-content {
    padding: 1.5rem;
    background-color: --cream;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    border: 0px solid #D4CFCA;
    border-top: none;
}
 
.film-card-year {
    font-size: 0.75rem;
    color: #A63D33;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
 
.film-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
}
 
.film-card-duration {
    font-size: 0.85rem;
    color: #8B8680;
}
 
.film-card-format {
    font-size: 0.75rem;
    color: #8B8680;
    font-style: italic;
}
 
/* ===== NO FILMS MESSAGE ===== */
.no-films-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #8B8680;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}
 
/* ===== PAGINATION ===== */
.films-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    margin-top: 3rem;
}
 
.pagination-btn {
    padding: 0.6rem 1rem;
    background-color: #FEFCF9;
    border: 1px solid #D4CFCA;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}
 
.pagination-btn:hover {
    background-color: #F5F1ED;
    border-color: #A63D33;
    color: #A63D33;
}
 
.pagination-number {
    min-width: 36px;
    height: 36px;
    padding: 0;
    background-color: #FEFCF9;
    border: 1px solid #D4CFCA;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: inherit;
}
 
.pagination-number:hover {
    background-color: #F5F1ED;
    border-color: #A63D33;
}
 
.pagination-number.active {
    background-color: #A63D33;
    color: #FEFCF9;
    border-color: #A63D33;
}
 
.pagination-info {
    font-size: 0.85rem;
    color: #8B8680;
    text-align: center;
    width: 100%;
}

/* ===== DETAIL CONTAINER ===== */
.film-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
 
/* ===== HERO/HEADER DETAIL ===== */
.film-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}
 
.film-detail-image {
    width: 100%;
    height: auto;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
 
.film-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
 
.film-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
 
.film-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
}
 
.film-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: rgba(245, 241, 237, 0.5);
    border-left: 3px solid #A63D33;
}
 
.film-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
 
.film-detail-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #A63D33;
}
 
.film-detail-meta-value {
    font-size: 0.95rem;
    color: #1a1a1a;
}
 
.film-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
}
 
/* ===== TRAILER SECTION ===== */
.film-detail-trailer {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    margin: 2rem 0;
}
 
.film-detail-trailer iframe {
    width: 100%;
    height: 100%;
    border: none;
}
 
/* ===== SYNOPSYS SECTION ===== */
.film-detail-synopsys {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #D4CFCA;
}
 
.film-detail-synopsys-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
}
 
.film-detail-synopsys-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
    max-width: 800px;
}
 
/* ===== GALLERY SECTION ===== */
.film-detail-gallery {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #D4CFCA;
}
 
.film-detail-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2rem;
}
 
.film-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
 
.film-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 2px;
    background-color: #D4CFCA;
}
 
.film-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
 
.film-gallery-item:hover img {
    transform: scale(1.05);
}
 
/* ===== AWARDS SECTION ===== */
.film-detail-awards {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #D4CFCA;
}
 
.film-detail-awards-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}
 
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
 
.award-item {
    padding: 1rem;
    background-color: rgba(166, 61, 51, 0.05);
    border-left: 3px solid #A63D33;
    border-radius: 2px;
}
 
.award-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}
 
.award-event {
    font-size: 0.9rem;
    color: #8B8680;
}
 
.award-year {
    font-size: 0.8rem;
    color: #A63D33;
    margin-top: 0.3rem;
}
 
/* ===== BACK BUTTON ===== */
.film-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #A63D33;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
 
.film-back-link:hover {
    color: #D97757;
}

/* ===== OMAGGI PAGE ===== */
.omaggi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.omaggi-list .article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background-color: var(--cream);
    overflow: hidden;
}

.omaggi-list .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/seamless-grunge-scratched-texture.jpg');
    background-size: cover;
    background-attachment: scroll;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.omaggi-list .article-card > * {
    position: relative;
    z-index: 1;
}

.omaggi-list .article-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.omaggi-list .article-footer {
    margin-top: auto;
}

.libro-image-container {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}

.libro-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== EVENT CARDS ===== */
.events-page-card {
    position: relative;
    overflow: hidden;
}

.events-page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/seamless-grunge-scratched-texture.jpg');
    background-size: cover;
    background-attachment: scroll;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.events-page-card > * {
    position: relative;
    z-index: 1;
}

/* ===== FILM CARDS ===== */
.timeline-content {
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/seamless-grunge-scratched-texture.jpg');
    background-size: cover;
    background-attachment: scroll;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.timeline-content > * {
    position: relative;
    z-index: 1;
}
 
/* ===== RESPONSIVE ===== */
 
@media (max-width: 768px) {
 
    .films-filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .films-filter-select {
        width: 100%;
    }
 
    .flp-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .film-card-content {
        text-align: center;
    }
 
    .film-card-image-wrapper {
        height: 300px;
    }
 
    .films-list-container {
        padding: 2rem 1rem;
    }
 
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

     .film-detail-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
 
    .film-detail-title {
        font-size: 1.5rem;
    }
 
    .film-detail-info {
        gap: 1rem;
    }
 
    .film-detail-meta {
        padding: 1rem;
    }
 
    .film-detail-synopsys {
        margin-top: 2rem;
        padding-top: 2rem;
    }
 
    .film-detail-gallery {
        margin-top: 2rem;
        padding-top: 2rem;
    }
 
    .film-gallery-grid {
        grid-template-columns: 1fr;
    }
 
    .film-detail-container {
        padding: 2rem 1rem;
    }

    .film-title {
        text-align: center;
    }

    .film-info {
        text-align: center;
    }
}

/* ===== RESPONSIVE ===== */
/* Questa media query è stata rimossa perché entra in conflitto con il sistema responsive mobile/tablet */
/* Il layout mobile/tablet è ora gestito dalla media query principale a 768px-1535px */

/* ===== ADDITIONAL INFO SECTION ===== */
.additional-info-section {
    background-color: rgba(245, 241, 237, 0.5);
    padding: 5rem 2rem;
}
 
.additional-info-container {
    max-width: 1200px;
    margin: 0 auto;
}
 
.additional-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 3rem;
}
 
 
.info-card {
    background-color: var(--cream);
    padding: 2rem;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
 
.info-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
 
.info-card:nth-child(1).revealed { transition-delay: 0.1s; }
.info-card:nth-child(2).revealed { transition-delay: 0.2s; }
.info-card:nth-child(3).revealed { transition-delay: 0.3s; }
 
.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
 
.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--stone-dark);
    margin-bottom: 1rem;
}
 
.info-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--stone-dark);
    line-height: 1.7;
}



@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-bg-image {
        width: 100%;
        opacity: 0.5;
    }

    .hero-right {
        height: auto;
    }

    .film-strip {
        position: relative;
        right: auto;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .quote-content {
        margin-left: 0;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interviews-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-card {
        gap: 1.5rem;
    }

    .article-image {
        width: 180px;
        height: 180px;
    }

     .timeline::before {
        left: 0;
    }

    .timeline-item-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-item-content,
    .timeline-item:nth-child(even) .timeline-item-content {
        flex-direction: column;
    }

    .timeline-image {
        width: 100%;
        height: 240px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 0;
        top: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 3px solid var(--accent);
        border-right: none;
    }

     .events-page-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
 
    .events-page-card {
        border-left-width: 2px;
    }
 
    .events-page-content {
        padding: 1.5rem;
        gap: 1rem;
    }
 
    .events-page-title {
        font-size: 1.15rem;
    }
 
    .events-page-description {
        font-size: 0.9rem;
    }



}

@media (max-width: 768px) {
    .featured-quote-section {
        padding: 3rem 1rem;
    }

    .featured-quote-text {
        font-size: 1.2rem;
    }

    .nav-main {
    gap: 1rem;
}

.nav-main li {
    width: 100%;
}

    .hero {
        padding: 2rem 1rem;
    }

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

    .films-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .films-section {
        padding: 3rem 1rem;
    }

    .quote-section {
        padding: 3rem 1rem;
    }

    .quote-text {
        font-size: 1.4rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .quote-image {
        background-image: url('images/quote-image-mobile.png');
        background-size: cover;
        background-position: center;
    }

    .quote-image img {
        display: none;
    }

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

    .section-hero-title {
        font-size: 1.8rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .policy-section {
        padding: 3rem 1rem;
    }
    

     .pagination {
        gap: 1.5rem;
    }

    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

     .additional-info-section {
        padding: 3rem 1rem;
    }
 
    .additional-info-title {
        font-size: 1.8rem;
    }
 
    .bio-timeline-section {
        padding: 3rem 1rem;
    }

     .events-page-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
 
    .events-page-card {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }
 
    .events-page-image {
        width: 200px;
        height: 200px;
        flex-shrink: 0;
        border-radius: 2px;
    }
 
    .events-page-content {
        padding: 1.5rem;
        gap: 1rem;
    }
 
    .events-page-title {
        font-size: 1.1rem;
    }
 
    .events-page-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
 
    .events-page-card:hover {
        transform: translateX(8px);
    }
 
    .films-filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .films-filter-select {
        width: 100%;
    }
 
    .films-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
 
    .film-card-image-wrapper {
        height: 300px;
    }
 
    .films-list-container {
        padding: 2rem 1rem;
    }
 
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

}

@media (max-width: 480px) {
    
    /* Mostra il selettore delle lingue anche su mobile */
    .nav-languages {
        display: flex !important;
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        width: auto;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .nav-languages button {
        font-size: 0.75rem;
    }
    
    .nav-languages span {
        display: none;
    }
    
    .construction-banner {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
    }

    .info-bar {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .featured-quote-section {
        padding: 2rem 1rem;
        border-top: none;
        border-bottom: none;
    }

    .featured-quote-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .featured-quote-author {
        font-size: 0.85rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-languages {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }

    .nav-main {
    position: fixed;
    top: calc(60px + 0.75rem);
    left: 0;
    right: 0;
    bottom: 0;

    background-color: var(--beige);

    flex-direction: column;
    gap: 0;

    padding: 0;
    padding-left: 10px;
    margin: 0;
    font-size: .95rem;

    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    border-bottom: 1px solid var(--border);
}

.nav-main a {
    font-size: .95rem;
}

   .nav-main li {
    width: 100%;
    flex-shrink: 0;
}

.dropdown-menu {
    position: static;
    display: block;

    transform: none;

    width: 100%;

    background: rgba(0,0,0,.03);

    border: none;
    box-shadow: none;

    padding: 0;
}

.dropdown-menu a {
    padding-left: 2rem;
    font-size: .85rem;
}
    
    /* Mostra il selettore lingua mobile all'interno del menu hamburger */
    .nav-languages-mobile {
        display: flex !important;
        list-style: none;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        width: 100%;
        border-top: 1px solid var(--border);
        padding: 0.75rem 1rem 0.75rem 1rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .nav-languages-mobile button {
        background: none;
        border: none;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.2s;
        color: var(--stone-light);
        font-family: inherit;
    }
    
    .nav-languages-mobile button.active {
        color: var(--accent);
    }
    
    .nav-languages-mobile button:hover {
        color: var(--stone-dark);
    }
    
    .nav-languages-mobile span {
        color: var(--border);
        margin: 0 0.3rem;
        display: inline;
    }

    .nav-main a:last-child {
        border-bottom: none;
    }

    .nav-main.mobile-hidden {
        display: none;
    }

    .nav-container {
        padding: 1rem 0.75rem;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        font-size: 0.6rem;
        flex: 1;

         gap: 8px;
    }

    .nav-logo-img {
    height: 35px;
    width: auto;
}

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        min-height: auto;
        gap: 1rem;
    }

    .hero::before {
        display: none;
    }

    .hero-bg-image {
        position: relative;
        width: 100%;
        height: 250px;
        object-fit: cover;
        left: 0;
        top: 0;
        z-index: -1;
        margin-bottom: 1rem;
    }

    .hero-left {
        gap: 0;
    }

    .hero-right {
        display: none;
    }

    .hero-sidebar-label {
        display: none;
    }

    .film-strip {
        position: static;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 1rem auto 1.5rem;
        height: auto;
        order: 1;
    }

    .hero-title {
        font-size: 1.5rem;
        color: var(--stone-dark);
        margin-bottom: 1rem;
    }

    .hero-intro {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .hero-divider {
        width: 100px;
        margin-bottom: 0.5rem;
    }

    .intro-section {
        padding: 2rem 1rem;
    }

    .intro-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .films-section {
        padding: 2rem 1rem;
    }

    .films-grid {
        grid-template-columns: 1fr;
        display: grid;
        text-align: center;
    }

    .film-card {
        display: block;
        width: 240px;
        max-width: 240px;
        margin: 0 auto;
        overflow: hidden;
    }

    .film-image {
        width: 50%;
        height: auto;
        margin: 0 auto;
    }

    .film-frame-label {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .film-title {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .film-info {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.75rem;
    }

    .films-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .films-description {
        font-size: 0.85rem;
    }

    .quote-section {
        padding: 2rem 1rem;
    }

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

    .quote-image {
        height: 250px;
        object-fit: cover;
    }

    .quote-content {
        margin-left: 0;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .quote-text {
        font-size: 1.2rem;
    }

    .events-section {
        padding: 2rem 1rem;
    }

    .events-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .event-card {
        background-image: none;
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .footer-section {
        text-align: center;
    }

    .section-hero {
        padding: 2rem 1rem;
    }

    .section-hero-title {
        font-size: 1.5rem;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
    }

    .videos-container {
        padding: 0 1rem;
    }

    .interviews-filters {
        padding: 1.5rem;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .filter-select {
        width: 100%;
    }

    .videos-grid {
        gap: 1.5rem;
    }

    .video-content {
        padding: 1rem;
    }

    .articles-container {
        padding: 0 1rem;
    }

    .articles-list {
        gap: 1.5rem;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-excerpt {
        font-size: 0.85rem;
    }

    .page-header {
        padding: 2.5rem 1rem 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .policy-block-title {
        font-size: 1.25rem;
    }

      .additional-info-section {
        padding: 2rem 1rem;
    }
 
    .additional-info-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
 
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
 
    .info-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
 
    .info-card p {
        font-size: 0.85rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-item-content {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline-image {
        width: 100%;
        height: 200px;
        border-radius: 4px;
    }

    .timeline-dot {
        left: -7px;
        top: 20px;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-year {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

     .events-page-card {
        flex-direction: column;
        gap: 0;
    }
 
    .events-page-image {
        width: 100%;
        height: 180px;
    }
 
    .events-page-content {
        padding: 1.25rem;
        gap: 0.75rem;
    }
 
    .events-page-title {
        font-size: 1rem;
        line-height: 1.3;
    }
 
    .events-page-date {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
 
    .events-page-description {
        font-size: 0.85rem;
    }
 
    .location-icon {
        font-size: 0.9rem;
        margin-top: 1px;
    }
 
    .events-page-footer {
        padding-top: 1rem;
        margin-top: 0.25rem;
    }
 
    .events-page-link {
        font-size: 0.85rem;
    }

     .flp-grid {
        grid-template-columns: 1fr;
    }
 
    .film-card-image-wrapper {
        height: 250px;
    }
 
    .films-pagination {
        gap: 0.3rem;
    }
 
    .pagination-number {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
 
    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

     .film-detail-container {
        padding: 1rem;
    }
 
    .film-detail-header {
        gap: 1.5rem;
    }
 
    .film-detail-title {
        font-size: 1.3rem;
    }
 
    .film-detail-synopsys-title,
    .film-detail-gallery-title,
    .film-detail-awards-title {
        font-size: 1.2rem;
    }
 
    .film-detail-meta {
        padding: 0.75rem;
    }

}

/* ===== MOBILE LANDSCAPE BREAKPOINT (481px - 767px) ===== */
@media (min-width: 481px) and (max-width: 767px) {
    
    /* Mostra l'hamburger menu */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Nasconde il menu di default */
    .nav-main {
        display: none !important;
        position: fixed;
        top: calc(60px + 0.75rem);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--beige);
        flex-direction: column;
        width: 100%;
        border-bottom: 1px solid var(--border);
        gap: 0;
        padding: 0;
        margin: 0;
        z-index: 99;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Quando il menu NON ha mobile-hidden, lo mostra in verticale */
    .nav-main:not(.mobile-hidden) {
        display: flex !important;
    }
    
    .nav-main li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    
    .nav-main a {
        padding: 1rem;
        display: block;
        border-bottom: none;
    }
    
    /* Nasconde il selettore lingua desktop */
    .desktop-only {
        display: none !important;
    }
    
    /* Mostra il selettore lingua mobile all'interno del menu hamburger */
    .nav-languages-mobile {
        display: flex !important;
        list-style: none;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.75rem;
        width: 100%;
        border-top: 1px solid var(--border);
        padding: 0.75rem 1rem 0.75rem 1rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .nav-languages-mobile button {
        background: none;
        border: none;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.2s;
        color: var(--stone-light);
        font-family: inherit;
    }
    
    .nav-languages-mobile button.active {
        color: var(--accent);
    }
    
    .nav-languages-mobile button:hover {
        color: var(--stone-dark);
    }
    
    .nav-languages-mobile span {
        color: var(--border);
        margin: 0 0.3rem;
        display: inline;
    }
    
    .nav-languages {
        display: none !important;
    }
    
    /* Gestisce il dropdown */
    .dropdown-menu {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.03);
        border: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
        min-width: auto;
        z-index: 100;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: flex !important;
        flex-direction: column;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem 0.75rem 2rem;
        font-size: 0.85rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        white-space: normal;
        color: var(--accent);
        background-color: transparent;
        text-align: left;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: var(--accent-light);
    }
    
    .nav-main.mobile-hidden {
        display: none !important;
    }
    
}

/* ===== TABLET BREAKPOINT (768px - 1535px) - Include iPad Pro ===== */
@media (min-width: 768px) and (max-width: 1535px) {
    
    /* Mostra l'hamburger menu con !important per sovrascrivere 481px */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Nasconde il menu di default con !important */
    .nav-main {
        display: none !important;
        position: fixed;
        top: calc(60px + 1rem);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--beige);
        flex-direction: column;
        width: 100%;
        border-bottom: 1px solid var(--border);
        gap: 0;
        padding: 0;
        margin: 0;
        z-index: 99;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Quando il menu NON ha mobile-hidden, lo mostra in verticale */
    .nav-main:not(.mobile-hidden) {
        display: flex !important;
    }
    
    .nav-main li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    
    .nav-main a {
        padding: 1rem;
        display: block;
        border-bottom: none;
    }
    
    /* Nasconde il selettore lingua desktop */
    .desktop-only {
        display: none !important;
    }
    
    /* Mostra il selettore lingua mobile all'interno del menu hamburger */
    .nav-languages-mobile {
        display: flex !important;
        list-style: none;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        width: 100%;
        border-top: 1px solid var(--border);
        padding: 1rem 1rem 1rem 1rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .nav-languages-mobile button {
        background: none;
        border: none;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.2s;
        color: var(--stone-light);
        font-family: inherit;
    }
    
    .nav-languages-mobile button.active {
        color: var(--accent);
    }
    
    .nav-languages-mobile button:hover {
        color: var(--stone-dark);
    }
    
    .nav-languages-mobile span {
        color: var(--border);
        margin: 0 0.3rem;
    }
    
    /* Gestisce il dropdown in verticale nel tablet */
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        display: none !important;
        background-color: rgba(0, 0, 0, 0.03);
        border: none;
        box-shadow: none;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0;
        min-width: auto;
        z-index: 100;
    }
    
    /* Rimuove lo pseudo-elemento che potrebbe coprire il testo */
    .dropdown-menu::before {
        display: none !important;
    }
    
    /* Mostra il dropdown quando il parent è hover o active */
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: flex !important;
        flex-direction: column;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 1rem 0.75rem 2rem !important;
        font-size: 0.85rem !important;
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        white-space: normal !important;
        color: var(--accent) !important;
        background-color: transparent;
        text-align: left;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: var(--accent-light) !important;
    }
    
}

/* ===== DESKTOP BREAKPOINT (1536px+) ===== */
@media (min-width: 1536px) {
    
    /* Nasconde l'hamburger menu */
    .hamburger {
        display: none !important;
    }
    
    /* Mostra il menu principale in orizzontale */
    .nav-main {
        display: flex !important;
        position: static !important;
        width: auto !important;
        background-color: transparent !important;
        flex-direction: row;
        border-bottom: none !important;
        gap: 2rem;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nav-main li {
        width: auto !important;
        border-bottom: none !important;
    }
    
    .nav-main a {
        padding: 0 !important;
        display: inline-block;
        border-bottom: none;
    }
    
    /* Mostra il selettore lingua desktop e nasconde quello mobile */
    .desktop-only {
        display: flex !important;
    }
    
    .nav-languages-mobile {
        display: none !important;
    }
    
    /* Dropdown torna alla versione desktop */
    .dropdown-menu {
        position: absolute !important;
        left: 100% !important;
        top: 100% !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
        display: none;
        background-color: var(--beige);
        border: 1px solid var(--border);
        box-shadow: 0 8px 16px rgba(0,0,0,.1);
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        border-radius: 2px;
        z-index: 200;
    }
    
    .dropdown-menu::before {
        content: "" !important;
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
        display: block !important;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
        display: block !important;
        width: auto !important;
        border-bottom: none !important;
        white-space: nowrap !important;
        color: var(--stone-light) !important;
        background-color: transparent !important;
        text-align: left;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.03) !important;
        color: var(--stone-dark) !important;
    }
    
}