/* ============================================
   ACCADEMIA SARDEGNA NEL CUORE - DARK THEME
   ============================================ */

/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #c41e3a;
    --secondary-color: #0f4c81;
    --accent-color: #d4af37;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1400px; /* Aumentato per Full HD */

    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

.mission-content.two-columns {
    display: flex;
    gap: 40px;
    align-items: center;
}

.mission-content .mission-text {
    flex: 1;
}

.sponsor {
    text-align: center;
}

.sponsor-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

/* Responsive: uno sotto l'altro su mobile */
@media (max-width: 768px) {
    .mission-content.two-columns {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   GLOBAL STYLES & FIXES
   ============================================ */

/* PREVENT HORIZONTAL SCROLL */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* PREVENT INPUT ZOOM ON iOS */
input[type="text"],
input[type="email"],
textarea,
select {
    font-size: 16px !important;
}

/* SMOOTH TOUCH SCROLLING */
body {
    -webkit-overflow-scrolling: touch;
}

/* FIX IMAGE OVERFLOW */
img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
}

/* ============================================
   GOOGLE TRANSLATE - CUSTOM ELEGANT DESIGN
   ============================================ */
/* Hide default Google Translate bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.skiptranslate iframe {
    visibility: hidden !important;
}

/* Custom translate button */
#google_translate_element {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
}

.custom-translate-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-translate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.3);
    border-color: var(--primary-color);
}

.custom-translate-btn .globe-icon {
    font-size: 1.2rem;
}

.translate-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.translate-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.translate-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.translate-dropdown button:hover {
    background: var(--bg-darker);
    color: var(--primary-color);
}

.translate-dropdown button.active {
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
}

.lang-flag {
    font-size: 1.3rem;
}

/* Google Translate widget styles override */
.goog-te-gadget {
    font-family: var(--font-body) !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: var(--text-primary) !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--text-primary) !important;
}

/* Hide powered by Google */
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
}

.logo {
    flex-shrink: 0; /* Logo non si riduce */
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1; /* Prende lo spazio centrale */
    justify-content: center; /* Menu centrato */
}

.custom-translate-btn,
.mobile-menu-toggle {
    flex-shrink: 0; /* Non si riducono */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-smooth);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.btn-project {
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    padding: 12px 24px !important;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.btn-project::after {
    display: none;
}

.theme-switch {
    margin-left: 20px;
}

.switch-btn {
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.switch-btn:hover {
    background: var(--bg-darker);
    border-color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1a0a0f 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/trame_di_sardegna.png') center/cover;
    opacity: 0.08;
    animation: heroPattern 60s linear infinite;
}

@keyframes heroPattern {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 100;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator:hover span {
    border-color: var(--primary-color);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 25px;
    position: relative;
    transition: var(--transition-smooth);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 3px;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDown {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-light {
    background: white;
    color: var(--bg-dark);
}

.btn-light:hover {
    background: var(--accent-color);
    color: white;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission {
    background: var(--bg-darker);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.mission-text .lead {
    color: var(--text-primary);
    font-weight: 400;
}

.mission-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.mission-image img:hover {
    transform: scale(1.02);
}

/* ============================================
   FEATURED PROJECT
   ============================================ */
.featured-project {
    background: var(--bg-dark);
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 50px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.project-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-content h3 {
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 25px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-darker);
    border-radius: 12px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 1.8rem;
}

.info-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values {
    background: var(--bg-darker);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-credit {
    font-size: 0.85rem !important;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    nav {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 90px);
        background: var(--bg-card);
        flex-direction: column;
        padding: 40px 20px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mission-content,
    .project-info {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .logo img {
        height: 50px;
    }

    nav {
        gap: 30px; /* Riduce gap su tablet */
    }

    .hero {
        height: 90vh;
    }

    .project-card {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   EXHIBITION PAGES
   ============================================ */

/* Exhibition Hero */
.exhibition-hero {
    position: relative;
    min-height: 100vh; /* Minimo schermo completo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f0f 50%, #1a1010 100%);
    overflow: visible; /* Permette scroll se necessario */
    padding: 80px 20px 60px; /* Padding per zoom e contenuto */
}

.exhibition-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.exhibition-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Ridotto per zoom Windows */
    margin-bottom: 15px;
}

.exhibition-logo {
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease-out;
}

.exhibition-logo img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1));
}

/* New: Exhibition logos container (Regione + Trame) */
.exhibition-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out;
}

.regione-logo-hero {
    height: 45px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.15));
    transition: var(--transition-smooth);
}

.regione-logo-hero:hover {
    opacity: 1;
    transform: scale(1.05);
}

.trame-logo-hero {
    max-width: 240px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1));
}

.exhibition-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
}

.exhibition-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.5);
    animation: fadeInUp 1.4s ease-out;
}

/* Exhibition Introduction */
.exhibition-intro {
    background: var(--bg-darker);
    padding-top: 100px; /* Spazio per il banner fisso */
}

@media (max-width: 768px) {
    .exhibition-intro {
        padding-top: 80px;
    }
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Exhibition Sections */
.exhibition-sections {
    background: var(--bg-dark);
}

.exhibition-section {
    margin-bottom: 80px;
    padding: 60px 0;
    border-bottom: 2px solid var(--border-color);
}

.exhibition-section:last-child {
    border-bottom: none;
}

.exhibition-section .section-content {
    max-width: 900px;
    margin: 0 auto;
}

.exhibition-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.exhibition-section .section-intro {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 25px;
    font-style: italic;
}

.exhibition-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

.costume-highlights {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.costume-highlights h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.costume-highlights ul {
    list-style: none;
    padding-left: 0;
}

.costume-highlights li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.costume-highlights li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 5px;
}

.exhibition-section.reverse .section-content {
    text-align: left;
}

/* Exhibition Details */
.exhibition-details {
    background: var(--bg-darker);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.detail-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.detail-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.detail-card strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Exhibition Gallery */
.exhibition-gallery {
    background: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.2);
}

.gallery-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.gallery-note {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
}

/* Exhibition Page Responsive */

/* Full HD e schermi grandi (1920px+) */
@media (min-width: 1920px) {
    .exhibition-hero-content {
        max-width: 1100px;
        padding: 0 40px;
    }

    .exhibition-logos {
        gap: 50px;
        margin-bottom: 50px;
    }

    .regione-logo-hero {
        height: 70px;
    }

    .trame-logo-hero {
        max-width: 450px;
    }

    .exhibition-hero h1 {
        font-size: 4.5rem;
    }

    .exhibition-subtitle {
        font-size: 1.8rem;
    }

    .exhibition-status-badge {
        font-size: 1rem;
        padding: 14px 30px;
    }

    .details-grid {
        gap: 40px;
    }

    .detail-card {
        padding: 40px;
    }

    .detail-icon {
        font-size: 3.5rem;
    }
}

/* Schermi grandi (1440px - 1920px) */
@media (min-width: 1441px) and (max-width: 1919px) {
    .exhibition-hero-content {
        max-width: 950px;
    }

    .exhibition-logos {
        gap: 40px;
        margin-bottom: 40px;
    }

    .regione-logo-hero {
        height: 60px;
    }

    .trame-logo-hero {
        max-width: 380px;
    }

    .exhibition-hero h1 {
        font-size: 3.8rem;
    }

    .exhibition-subtitle {
        font-size: 1.5rem;
    }
}

/* Schermi medi (1024px - 1440px) come laptop 13-15" */
@media (max-width: 1440px) and (min-width: 1025px) {
    .exhibition-hero {
        padding: 30px 20px 50px;
    }

    .exhibition-hero-content {
        max-width: 800px;
    }

    .exhibition-logos {
        gap: 30px;
        margin-bottom: 30px;
    }

    .regione-logo-hero {
        height: 50px;
    }

    .trame-logo-hero {
        max-width: 300px;
    }

    .exhibition-hero h1 {
        font-size: 3rem;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) and (min-width: 769px) {
    .exhibition-hero {
        padding: 30px 20px 40px;
    }

    .exhibition-hero-content {
        max-width: 700px;
    }

    .exhibition-logos {
        gap: 25px;
        margin-bottom: 25px;
    }

    .regione-logo-hero {
        height: 45px;
    }

    .trame-logo-hero {
        max-width: 280px;
    }

    .exhibition-hero h1 {
        font-size: 2.5rem;
    }
}

/* Mobile e tablet portrait */
@media (max-width: 768px) {
    .exhibition-hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 0;
    }

    .exhibition-logos {
        flex-direction: column;
        gap: 20px;
    }

    .regione-logo-hero {
        height: 60px;
    }

    .trame-logo-hero {
        max-width: 250px;
    }

    .exhibition-logo img {
        max-width: 250px;
    }

    .exhibition-subtitle {
        font-size: 1.2rem;
    }

    .exhibition-section {
        margin-bottom: 50px;
        padding: 40px 0;
    }

    .exhibition-section h3 {
        font-size: 1.8rem;
    }

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

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

/* ============================================
   CONTACT PAGE - IMPROVED FORM DESIGN
   ============================================ */
.contact-section {
    background: var(--bg-darker);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.contact-form-wrapper .section-header {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form-wrapper .section-header h2 {
    margin-bottom: 10px;
}

.contact-form-wrapper .underline {
    margin: 0;
}

.contact-form-wrapper > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    margin-top: 10px;
    padding: 16px 40px;
    font-size: 1.05rem;
    align-self: flex-start;
}

/* Privacy Consent Checkbox */
.privacy-consent {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.checkbox-text a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-wrapper .section-header {
    margin-bottom: 20px;
    text-align: left;
}

.contact-info-wrapper .section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-info-wrapper .underline {
    margin: 0;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    text-align: center;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-section {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.social-section h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.social-section > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.social-links-large {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.social-link:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.social-icon {
    font-size: 1.5rem;
}

.map-section {
    background: var(--bg-dark);
    padding: 80px 0;
}

.map-info {
    max-width: 800px;
    margin: 0 auto;
}

.map-card {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.map-card h3 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.map-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.map-card p strong {
    color: var(--text-primary);
}

.map-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.map-details p {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-details p:last-child {
    border-bottom: none;
}

/* Contact Page Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper,
    .map-card {
        padding: 35px;
    }

    .social-links-large {
        flex-direction: column;
    }

    .social-link {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper,
    .map-card {
        padding: 25px;
    }

    .contact-form .btn-primary {
        width: 100%;
        text-align: center;
    }

    .map-card h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   GALLERY STYLES
   ============================================ */
.gallery-section-title {
    text-align: center;
    margin: 3rem 0 2rem;
}

.gallery-section-title h3 {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(196, 30, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    font-size: 3rem;
    color: white;
}

/* Panoramic Gallery */
.gallery-grid-panoramic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
}

.gallery-item-panoramic {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

.gallery-item-panoramic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-panoramic:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10001;
    font-weight: 300;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    text-align: center;
    max-width: 80%;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-grid-panoramic {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-zoom {
        font-size: 2rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* ============================================
   FOOTER SPONSORS
   ============================================ */
.footer-sponsors {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.footer-sponsors h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-logo {
    max-height: 80px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    margin-bottom: 20px;
}

.footer-sponsor-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-sponsor-text p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-sponsor-text strong {
    color: var(--text-primary);
}

.footer-sponsor-text .funding-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sponsor-logo:hover {
    opacity: 1;
}

.regione-logo {
    height: 80px;
    opacity: 0.9;
}

.regione-logo:hover {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@media (max-width: 768px) {
    .footer-sponsors {
        padding: 30px 0 20px;
    }

    .sponsor-logo {
        max-height: 60px;
    }
}

/* ============================================
   EXHIBITION STATUS BADGE - STICKY BANNER
   ============================================ */
.exhibition-status-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 25px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
    z-index: 999;
}

.exhibition-status-badge.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(196, 30, 58, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(196, 30, 58, 0.9), 0 0 20px rgba(196, 30, 58, 0.6);
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .exhibition-status-badge {
        padding: 10px 15px;
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
}

/* ============================================
   ENHANCED LIGHTBOX WITH NAVIGATION
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition-smooth);
    font-weight: 300;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 60px;
    padding: 20px 30px;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition-smooth);
    border-radius: 8px;
    font-weight: 300;
    line-height: 0.8;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   360° PANORAMA VIEWER
   ============================================ */
.panorama-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
}

#panorama-container {
    width: 95%;
    height: 85%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    background: #000;
    position: relative;
}

.panorama-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    overflow: hidden;
}

.panorama-wrapper:active {
    cursor: grabbing;
}

.panorama-image {
    max-width: none;
    width: auto;
    height: 100%;
    object-fit: contain;
    cursor: inherit;
    transition: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.panorama-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition-smooth);
    font-weight: 300;
}

.panorama-close:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.panorama-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10001;
}

.panorama-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.panorama-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.panorama-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 30px;
    z-index: 10001;
}

.panorama-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Mobile responsive for panorama viewer */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close,
    .panorama-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .panorama-controls {
        bottom: 80px;
    }

    .panorama-controls button {
        font-size: 18px;
        padding: 12px 20px;
    }

    .panorama-info {
        bottom: 20px;
        width: 90%;
        padding: 10px 15px;
    }

    .panorama-info p {
        font-size: 11px;
    }
}

/* ============================================
   COSTUMI TRADIZIONALI GALLERY
   ============================================ */
.costumi-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.costumi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.costume-card {
    background: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.costume-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(196, 30, 58, 0.3);
    border-color: var(--primary-color);
}

.costume-card-image {
    position: relative;
    width: 100%;
    padding-top: 133%; /* 3:4 aspect ratio */
    overflow: hidden;
    background: #000;
}

.costume-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.costume-card:hover .costume-card-image img {
    transform: scale(1.08);
}

.costume-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.costume-card:hover .costume-card-overlay {
    opacity: 1;
}

.costume-card-info {
    padding: 20px;
}

.costume-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.costume-card-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.costume-card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.costume-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* ============================================
   COSTUME MODAL
   ============================================ */
.costume-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.costume-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.costume-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.costume-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.costume-modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.costume-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.costume-modal-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.costume-modal-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.costume-modal-info {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.costume-modal-info h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.costume-modal-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.location-icon {
    font-size: 1.5rem;
}

.costume-modal-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    max-height: 500px;
}

.costume-modal-description strong {
    color: var(--text-primary);
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.costume-modal-description strong:first-child {
    margin-top: 0;
}

.costume-modal-description br {
    display: block;
    content: "";
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .costumi-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .costume-modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .costume-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .costume-modal-info h3 {
        font-size: 1.5rem;
    }

    .costume-modal-location {
        font-size: 1rem;
    }

    .costume-modal-description {
        font-size: 0.95rem;
    }
}

/* ============================================
   COSTUME TOOLTIP
   ============================================ */
.costume-tooltip {
    position: absolute;
    top: 0;
    left: calc(100% + 15px);
    width: 350px;
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.costume-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.costume-tooltip::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--primary-color);
}

.tooltip-header {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tooltip-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

/* Tooltip mobile - hide on small screens */
@media (max-width: 1024px) {
    .costume-tooltip {
        display: none;
    }

    /* On mobile, clicking opens modal instead */
    .costume-card {
        cursor: pointer;
    }
}

/* Navigation buttons for modal */
.costume-modal-prev,
.costume-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.costume-modal-prev {
    left: 20px;
}

.costume-modal-next {
    right: 20px;
}

.costume-modal-prev:hover,
.costume-modal-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.5);
}

.costume-modal-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .costume-modal-prev,
    .costume-modal-next {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }

    .costume-modal-prev {
        left: 10px;
    }

    .costume-modal-next {
        right: 10px;
    }
}

/* ============================================
   QUICK NAVIGATION ICONS
   ============================================ */
.quick-nav-icons {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 900;
}

.quick-nav-btn {
    position: absolute;
    pointer-events: all;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b1429);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.quick-nav-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(196, 30, 58, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.quick-nav-left {
    left: 30px;
}

.quick-nav-right {
    right: 30px;
}

.nav-icon {
    font-size: 28px;
    line-height: 1;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .quick-nav-btn {
        width: 60px;
        height: 60px;
    }

    .quick-nav-left {
        left: 15px;
    }

    .quick-nav-right {
        right: 15px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        font-size: 0.6rem;
    }
}

/* ============================================
   PRIVACY POLICY STYLES
   ============================================ */
.privacy-policy {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.privacy-policy .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.privacy-policy h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.privacy-policy .last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-top: 20px;
}

.privacy-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 25px 0 15px;
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-section ul {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.privacy-section ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.privacy-section ul li::before {
    content: "▸";
    color: var(--primary-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

.privacy-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.privacy-section a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.privacy-section strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .privacy-policy {
        padding: 100px 20px 60px;
    }

    .privacy-policy .content-wrapper {
        padding: 40px 30px;
    }

    .privacy-policy h1 {
        font-size: 2rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }

    .privacy-section h3 {
        font-size: 1.2rem;
    }
}

/* ============================================
   RESPONSIVE FIXES COMPLETE - MOBILE OPTIMIZATION
   Added: 27 November 2025
   Version: 1.0
   ============================================ */

/* Enhanced mobile responsive fixes for all screen sizes */
@media (max-width: 768px) {

    /* HEADER & NAVIGATION ENHANCED */
    .logo img {
        height: 45px;
    }

    nav {
        width: 280px;
        height: auto !important;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 30px 15px;
    }

    nav ul {
        gap: 15px;
    }

    nav a {
        font-size: 0.95rem;
        padding: 10px 5px;
    }

    .mobile-menu-toggle {
        padding: 8px;
        margin-right: 5px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }

    /* HERO SECTION ENHANCED */
    .hero {
        height: auto !important;
        min-height: 85vh;
        padding: 100px 20px 80px;
    }

    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 30px;
        line-height: 1.4;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .scroll-indicator {
        bottom: 15px;
        transform: translateX(-50%) scale(0.8);
    }

    /* EXHIBITION HERO ENHANCED */
    .exhibition-hero {
        height: auto !important;
        min-height: 70vh;
        padding: 30px 15px 60px;
    }

    .exhibition-logos {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .regione-logo-hero {
        height: 50px;
        max-width: 90%;
    }

    .trame-logo-hero {
        max-width: 200px;
        width: 90%;
    }

    /* GALLERY ENHANCED */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 10px;
    }

    .gallery-item {
        max-width: 100%;
        margin: 0 auto;
    }

    .gallery-grid-panoramic {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 10px;
    }

    .gallery-item-panoramic {
        aspect-ratio: 2/1;
    }

    /* LIGHTBOX ENHANCED */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        padding: 10px 15px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }

    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }

    .lightbox-caption {
        bottom: 60px;
        font-size: 14px;
        padding: 10px 15px;
        max-width: 90%;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 14px;
    }

    /* 360 PANORAMA ENHANCED */
    #panorama-container {
        width: 100%;
        height: 70vh;
    }

    .panorama-close {
        top: 10px;
        right: 10px;
        font-size: 35px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* COSTUMI ENHANCED */
    .costumi-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        padding: 0 15px;
    }

    .costume-card-image {
        padding-top: 140%;
    }

    .costume-tooltip {
        display: none !important;
    }

    /* COSTUME MODAL ENHANCED - CRITICAL FIX */
    .costume-modal-content {
        max-width: 100%;
        max-height: 95vh;
        width: 95%;
        margin: 20px auto;
    }

    .costume-modal-body {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 20px 15px;
        max-height: calc(95vh - 80px);
        overflow-y: auto !important;
    }

    .costume-modal-image {
        max-height: 50vh;
    }

    .costume-modal-image img {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
    }

    .costume-modal-info {
        padding: 0;
        height: auto;
    }

    .costume-modal-description {
        font-size: 0.9rem;
        line-height: 1.5;
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0;
    }

    .costume-modal-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .costume-modal-prev,
    .costume-modal-next {
        width: 45px;
        height: 45px;
        font-size: 28px;
        padding: 0;
    }

    .costume-modal-prev { left: 5px; }
    .costume-modal-next { right: 5px; }

    .costume-modal-counter {
        top: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* QUICK NAVIGATION ENHANCED */
    .quick-nav-btn {
        width: 55px;
        height: 55px;
        gap: 3px;
    }

    .quick-nav-left { left: 10px; }
    .quick-nav-right { right: 10px; }

    .nav-icon {
        font-size: 22px;
    }

    .nav-label {
        font-size: 0.55rem;
        letter-spacing: 0.2px;
    }

    /* CONTACT FORM ENHANCED - CRITICAL FIX */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 0 15px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        width: 100% !important;
        padding: 12px 15px;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    .contact-form .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* FOOTER ENHANCED */
    .footer-sponsors {
        padding: 30px 15px 20px;
    }

    .sponsor-logo {
        max-height: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        padding: 0 20px;
        text-align: center;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {
    .quick-nav-btn {
        width: 50px;
        height: 50px;
    }

    .nav-icon {
        font-size: 20px;
    }

    .nav-label {
        display: none;
    }
}

/* EXTRA SMALL PHONES */
@media (max-width: 400px) {
    .hero {
        min-height: 75vh;
        padding: 80px 15px 60px;
    }

    .hero h1 {
        font-size: 1.6rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .regione-logo-hero {
        height: 40px;
    }

    .trame-logo-hero {
        max-width: 160px;
    }

    .costume-modal-body {
        padding: 15px 10px;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px !important;
        padding: 10px 12px;
    }

    .footer-content {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* ============================================
   TRAME DI SARDEGNA - ADDITIONAL FIXES
   Added: 27 November 2025
   Version: 1.1
   ============================================ */

/* HEADER RESPONSIVE FIX - Prevent icon overlap */
@media (max-width: 768px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        gap: 15px;
    }

    /* Custom translate button positioning */
    .custom-translate-btn {
        position: fixed !important;
        top: 20px !important;
        right: 70px !important; /* Move left to avoid hamburger */
        z-index: 1001;
        margin: 0;
    }

    .mobile-menu-toggle {
        position: relative !important;
        margin-left: auto;
        margin-right: 0 !important;
    }

    /* Ensure both buttons are visible and clickable */
    .custom-translate-btn,
    .mobile-menu-toggle {
        pointer-events: all;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .custom-translate-btn {
        right: 65px !important;
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .custom-translate-btn .globe-icon {
        font-size: 20px;
    }

    .custom-translate-btn .current-lang {
        font-size: 12px;
    }
}

/* QUICK NAV BUTTONS - Enhanced mobile */
@media (max-width: 768px) {
    .quick-nav-icons {
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
        z-index: 998;
        pointer-events: none;
    }

    .quick-nav-btn {
        pointer-events: all;
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .quick-nav-btn:active {
        transform: scale(0.9) !important;
    }

    .quick-nav-left {
        position: relative;
        left: 0;
    }

    .quick-nav-right {
        position: relative;
        right: 0;
    }

    .nav-icon {
        font-size: 28px;
    }

    .nav-label {
        font-size: 0.55rem;
        display: block;
    }
}

@media (max-width: 480px) {
    .quick-nav-btn {
        width: 55px;
        height: 55px;
    }

    .nav-icon {
        font-size: 24px;
    }

    .nav-label {
        display: none;
    }

    .quick-nav-icons {
        bottom: 15px;
        padding: 0 10px;
    }
}

/* COSTUMI SECTION - Ensure visibility */
#costumes-gallery {
    min-height: 100vh;
    position: relative;
}

.costumi-grid {
    opacity: 0;
    animation: fadeInGrid 0.6s ease forwards;
    animation-delay: 0.2s;
}

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

/* Loading state for costumi */
.costumi-grid:empty::before {
    content: "Caricamento costumi...";
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Touch targets minimum size (WCAG 2.1) */
@media (max-width: 768px) {
    button,
    .btn,
    .quick-nav-btn,
    .mobile-menu-toggle,
    .custom-translate-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================
   FIX URGENTE COSTUMI MOBILE - FORZA VISIBILITÀ
   Added: 27 November 2025 - URGENT FIX
   ============================================ */

/* Assicura che la sezione costumi sia sempre visibile */
#costumes-gallery,
.costumi-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
    background: var(--bg-dark) !important;
}

/* Forza visibilità grid costumi */
.costumi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 colonne su desktop */
    gap: 25px !important;
    padding: 20px 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Assicura che le card siano visibili */
.costume-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 20px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

/* Tablet: 2 colonne */
@media (max-width: 1024px) {
    .costumi-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonne su tablet */
        gap: 20px !important;
        padding: 20px 15px !important;
    }
}

/* Mobile: 2 colonne con gap ridotto */
@media (max-width: 768px) {
    .costumi-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonne su mobile */
        gap: 15px !important;
        padding: 15px 10px !important;
        animation: none !important;
    }

    section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   FIX QUICK NAV POSITION - PIÙ IN BASSO
   ============================================ */

@media (max-width: 768px) {
    .quick-nav-icons {
        position: fixed !important;
        top: 50% !important; /* A metà schermo */
        transform: translateY(-50%) !important;
        left: 0;
        right: 0;
        z-index: 998;
        display: flex !important;
        justify-content: space-between;
        padding: 0 10px !important; /* Più verso i lati */
        pointer-events: none;
    }

    .quick-nav-btn {
        pointer-events: all !important;
        width: 70px !important;
        height: 70px !important;
        background: var(--primary-color) !important;
        border-radius: 50% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        box-shadow: 0 8px 30px rgba(196, 30, 58, 0.7) !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
    }

    .quick-nav-left {
        margin-left: 5px !important;
    }

    .quick-nav-right {
        margin-right: 5px !important;
    }

    .nav-icon {
        font-size: 32px !important;
        line-height: 1 !important;
    }

    .nav-label {
        font-size: 0.65rem !important;
        display: block !important;
        text-align: center !important;
        white-space: nowrap !important;
        color: white !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    .quick-nav-icons {
        padding: 0 5px !important; /* Ancora più verso i lati su smartphone piccoli */
    }

    .quick-nav-btn {
        width: 65px !important;
        height: 65px !important;
    }

    .nav-icon {
        font-size: 28px !important;
    }
}

/* ============================================
   FIX HEADER - GOOGLE TRANSLATE BUTTON
   ============================================ */

@media (max-width: 768px) {
    /* Container header con flex */
    header .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }

    /* Google Translate button */
    .custom-translate-btn {
        position: absolute !important;
        top: 50% !important;
        right: 75px !important;
        transform: translateY(-50%) !important;
        z-index: 1001 !important;
        width: 55px !important;
        height: 55px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(15, 76, 129, 0.9) !important;
        border-radius: 8px !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        margin: 0 !important;
        padding: 5px !important;
    }

    .custom-translate-btn .globe-icon {
        font-size: 22px !important;
        line-height: 1 !important;
        margin-bottom: 2px !important;
    }

    .custom-translate-btn .current-lang {
        font-size: 11px !important;
        font-weight: bold !important;
        line-height: 1 !important;
        color: white !important;
    }

    /* Hamburger menu */
    .mobile-menu-toggle {
        position: relative !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        z-index: 1002 !important;
    }

    /* Dropdown translate - FORCE VISIBILITY */
    .translate-dropdown {
        position: fixed !important;
        right: 75px !important;
        top: 70px !important;
        z-index: 9999 !important;
        background: rgba(15, 76, 129, 0.98) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 12px !important;
        padding: 10px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
        min-width: 200px !important;
        backdrop-filter: blur(10px) !important;
    }

    .translate-dropdown.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .translate-dropdown button {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 12px 15px !important;
        background: transparent !important;
        border: none !important;
        color: white !important;
        font-size: 15px !important;
        text-align: left !important;
        cursor: pointer !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
        margin-bottom: 5px !important;
    }

    .translate-dropdown button:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: translateX(3px) !important;
    }

    .translate-dropdown button.active {
        background: rgba(196, 30, 58, 0.8) !important;
        font-weight: bold !important;
    }

    .translate-dropdown .lang-flag {
        font-size: 20px !important;
        margin-right: 10px !important;
    }
}

@media (max-width: 480px) {
    .custom-translate-btn {
        right: 70px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .custom-translate-btn .globe-icon {
        font-size: 20px !important;
    }

    .custom-translate-btn .current-lang {
        font-size: 10px !important;
    }

    .translate-dropdown {
        right: 70px !important;
        top: 65px !important;
        min-width: 180px !important;
    }

    .translate-dropdown button {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
}
