/* ============================================
   Europe Direct Paesi Vesuviani - Main CSS
   Palette EU: Blu #003399, Giallo #FFCC00
   Ispirazione: twoplustwo.eu
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* EU Palette */
    --eu-blue: #003399;
    --eu-blue-dark: #002266;
    --eu-blue-light: #0044cc;
    --eu-yellow: #FFCC00;
    --eu-yellow-light: #FFD633;
    --eu-yellow-dark: #E6B800;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F0F1F3;
    --gray-200: #E1E3E6;
    --gray-300: #C4C8CC;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Typography */
    --font-body: 'Lora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', serif;
    --font-heading: 'Barlow Condensed', 'Inter', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-width: 1200px;
    --gap: 24px;

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

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--eu-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--eu-blue-light);
}

a:focus-visible {
    outline: 3px solid var(--eu-yellow);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--eu-blue);
}

/* --- Skip Navigation (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--eu-yellow);
    color: var(--gray-900);
    padding: 12px 24px;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* --- Header & Navigation --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 45px 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0) 100%);
    padding-bottom: 40px;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: var(--eu-yellow);
}

.main-nav .current-menu-item a {
    color: var(--eu-yellow);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.lang-toggle a {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    transition: all var(--transition);
}

.lang-toggle a.active {
    background: var(--eu-yellow);
    color: var(--gray-900);
}

.lang-toggle a:hover:not(.active) {
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    position: absolute;
    left: 10px;
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span::before {
    content: '';
    top: -7px;
}

.menu-toggle span::after {
    content: '';
    top: 7px;
}

.menu-toggle.active span {
    background: transparent;
}

.menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Header scrolled state */
.site-header.scrolled {
    position: fixed;
    background: var(--white);
    padding: 12px 0 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease;
}

.site-header.scrolled .main-nav a {
    color: var(--gray-900);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a:focus-visible {
    background: rgba(0, 51, 153, 0.08);
    color: var(--eu-blue);
}

.site-header.scrolled .main-nav .current-menu-item a {
    color: var(--eu-blue);
}

.site-header.scrolled .lang-toggle {
    background: rgba(0, 51, 153, 0.08);
}

.site-header.scrolled .lang-toggle a {
    color: var(--gray-500);
}

.site-header.scrolled .lang-toggle a.active {
    background: var(--eu-blue);
    color: var(--white);
}

.site-header.scrolled .lang-toggle a:hover:not(.active) {
    color: var(--gray-900);
}

.site-header.scrolled .menu-toggle span,
.site-header.scrolled .menu-toggle span::before,
.site-header.scrolled .menu-toggle span::after {
    background: var(--gray-900);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 51, 153, 0.85) 0%,
        rgba(0, 51, 153, 0.7) 50%,
        rgba(0, 34, 102, 0.8) 100%
    );
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 160px var(--gap) 100px;
}

.hero-title {
    margin-bottom: 56px;
}

.hero-title-top {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-title-bottom {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--eu-yellow);
    margin-top: 8px;
}

.hero-text {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.8;
    margin-bottom: 28px;
    opacity: 0.92;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-info {
    font-size: 1.05rem;
    opacity: 0.8;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* --- Section Base --- */
.section {
    padding: var(--section-padding) 0;
}

.section--gray {
    background: var(--gray-50);
}

.section--blue {
    background: var(--eu-blue);
    color: var(--white);
}

.section--blue h2,
.section--blue h3 {
    color: var(--white);
}

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

.section-label {
    display: inline-block;
    padding: 10px 24px;
    background: var(--eu-yellow);
    color: var(--gray-900);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.section--blue .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Cards Grid (News) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    padding-top: 66.66%;
    overflow: hidden;
}

.card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.card-body {
    padding: 0;
}

.card-title {
    display: block;
    padding: 12px 16px;
    background: var(--eu-yellow);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    transition: background var(--transition);
}

.card:hover .card-title {
    background: var(--eu-yellow-dark);
}

.card-excerpt,
.card-date {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Tiles Grid (Activities) --- */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 0;
}

.tile-image {
    position: absolute;
    inset: 0;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.tile:hover .tile-image img {
    transform: scale(1.05);
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        transparent 50%
    );
    z-index: 1;
}

.tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.tile-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--eu-yellow);
    color: var(--gray-900);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tile-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
}

/* --- About Section --- */
/* About: Two-column layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.about-text .section-label {
    margin-bottom: 24px;
}

.about-text p + p {
    margin-top: 16px;
}

.about-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    margin-top: calc(1.8rem + 60px);
}

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

.about-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eu-blue);
    font-weight: 600;
    transition: gap var(--transition);
}

.about-links a:hover {
    gap: 12px;
}

.about-links a::after {
    content: '→';
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 16px;
}

.contact-details {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: var(--eu-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--eu-blue);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background var(--transition);
}

.social-link:hover {
    background: var(--eu-blue-light);
    color: var(--white);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.contact-map iframe,
.contact-map .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    border-radius: 8px;
}

/* --- Toast Notification --- */
.edpv-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 16px 0;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.edpv-toast .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.edpv-toast p {
    margin: 0;
}

.edpv-toast button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edpv-toast button:hover {
    opacity: 1;
}

.edpv-toast--success {
    background: #16a34a;
    color: #FFFFFF;
}

.edpv-toast--success button {
    color: #FFFFFF;
}

.edpv-toast--info {
    background: #003399;
    color: #FFFFFF;
}

.edpv-toast--info button {
    color: #FFFFFF;
}

/* --- Map Consent Gate --- */
.map-consent-gate {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, #003399 0%, #0044cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.map-consent-gate[hidden] {
    display: none;
}

.map-consent-gate__content {
    text-align: center;
    padding: 32px;
    max-width: 320px;
}

.map-consent-gate__icon {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.map-consent-gate__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.map-consent-gate__btn {
    display: inline-block;
    padding: 12px 24px;
    background: #FFCC00;
    color: #111827;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map-consent-gate__btn:hover {
    background: #E6B800;
}

.map-consent-gate__btn:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 2px;
}

/* --- Newsletter Section --- */
.newsletter-section {
    background: var(--eu-blue);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.newsletter-section h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.newsletter-desc {
    margin-bottom: 32px;
    opacity: 0.85;
    font-size: 1.05rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--eu-yellow);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--eu-yellow);
    color: var(--gray-900);
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--eu-yellow-dark);
}

.newsletter-form button:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

.newsletter-gdpr {
    font-size: 0.85rem;
    opacity: 0.7;
}

.newsletter-gdpr label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.newsletter-gdpr input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--eu-yellow);
}

.newsletter-gdpr a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.newsletter-gdpr a:hover {
    color: var(--eu-yellow);
}

.newsletter-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    display: block;
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    display: block;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--yellow {
    background: var(--eu-yellow);
    color: var(--gray-900);
}

.btn--yellow:hover {
    background: var(--eu-yellow-dark);
    color: var(--gray-900);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--eu-blue);
    color: var(--eu-blue);
}

.btn--outline:hover {
    background: var(--eu-blue);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn--outline-white:hover {
    background: var(--white);
    color: var(--eu-blue);
}

.btn:focus-visible {
    outline: 3px solid var(--eu-yellow);
    outline-offset: 2px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Footer --- */
.site-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--eu-yellow);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--eu-yellow);
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--eu-yellow);
}

/* --- Archive Pages --- */
.page-header {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    background-color: var(--eu-blue);
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 40, 104, 0.4) 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    padding: 160px 0 48px;
    width: 100%;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}

.page-header .section-desc {
    color: rgba(255, 255, 255, 0.85);
    margin: 16px auto 0;
    max-width: 600px;
}

/* Category Filters */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--eu-yellow);
    color: var(--gray-900);
}

.filter-btn:focus-visible {
    outline: 3px solid var(--eu-blue);
    outline-offset: 2px;
}

/* --- Single Post --- */
.single-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
}

.single-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.single-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    width: 100%;
}

.single-hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
}

.single-meta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.single-content {
    padding: 48px 0;
}

.single-content .entry-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-content .entry-content p + p {
    margin-top: 16px;
}

.single-content .entry-content h2 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.single-content .entry-content img {
    margin: 24px 0;
    border-radius: 4px;
}

/* --- Gallery (justified) --- */
.edpv-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 48px;
}

.edpv-gallery__item {
    min-width: 100px;
    border-radius: 4px;
    cursor: pointer;
}

.edpv-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.edpv-gallery__item:focus-visible {
    outline: 3px solid var(--eu-yellow);
    outline-offset: 2px;
}

/* --- Lightbox --- */
.edpv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.edpv-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.edpv-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.edpv-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.edpv-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.edpv-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.edpv-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.edpv-lightbox__prev { left: 16px; }
.edpv-lightbox__next { right: 16px; }

.edpv-lightbox__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    transition: all var(--transition);
}

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

.pagination .current {
    background: var(--eu-blue);
    border-color: var(--eu-blue);
    color: var(--white);
}

/* --- AJAX Loading State --- */
.tiles-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* --- Back Link --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eu-blue);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 24px;
    margin-bottom: 32px;
    transition: gap var(--transition);
}

.back-link:hover {
    gap: 12px;
}

.back-link::before {
    content: '\2190';
}

/* --- Event Dates Badge --- */
.event-dates {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--eu-yellow);
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 32px;
    margin-bottom: 24px;
}

.event-dates-icon {
    font-size: 1.1rem;
}

/* --- Page Content (Privacy/Cookie Policy) --- */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.page-content h3 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content h4 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.95rem;
}

.page-content table th,
.page-content table td {
    border: 1px solid var(--gray-200);
    padding: 12px 16px;
    text-align: left;
}

.page-content table th {
    background: var(--eu-blue);
    color: var(--white);
    font-weight: 600;
}

.page-content table tr:nth-child(even) td {
    background: var(--gray-50);
}

.page-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.page-content a {
    color: var(--eu-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: var(--eu-blue-light);
}

.page-lang-switch {
    text-align: right;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.page-lang-switch a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--eu-blue);
    text-decoration: none;
    font-size: 0.95rem;
}

.page-lang-switch a:hover {
    text-decoration: underline;
}

/* --- Utility --- */
.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
        --gap: 16px;
    }

    /* Mobile navigation */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--eu-blue-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        gap: 0;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .lang-toggle {
        margin-left: 0;
        margin-top: 16px;
        justify-content: center;
    }

    /* Keep mobile nav readable when header is scrolled */
    .site-header.scrolled .main-nav a {
        color: var(--white);
    }

    .site-header.scrolled .main-nav a:hover,
    .site-header.scrolled .main-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.15);
        color: var(--eu-yellow);
    }

    .site-header.scrolled .main-nav .current-menu-item a {
        color: var(--eu-yellow);
    }

    .site-header.scrolled .lang-toggle {
        background: rgba(255, 255, 255, 0.1);
    }

    .site-header.scrolled .lang-toggle a {
        color: rgba(255, 255, 255, 0.7);
    }

    .site-header.scrolled .lang-toggle a.active {
        background: var(--eu-yellow);
        color: var(--gray-900);
    }

    .site-header.scrolled .lang-toggle a:hover:not(.active) {
        color: var(--white);
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        margin-bottom: 28px;
    }

    .hero-text {
        font-size: 1rem;
    }

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

    .section-label {
        font-size: 1.44rem;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        margin-top: 0;
    }

    .about-text {
        text-align: center;
    }

    .about-links {
        align-items: center;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .single-hero-content h1 {
        font-size: 1.8rem;
    }

    .edpv-lightbox__nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .edpv-lightbox__prev { left: 8px; }
    .edpv-lightbox__next { right: 8px; }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header-content {
        padding: 120px 0 36px;
    }

    .page-header {
        min-height: 40vh;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 100px 16px 60px;
    }

    .hero-title {
        margin-bottom: 24px;
    }
}

/* --- 404 Error Page --- */
.error-404 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.error-404-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    z-index: -2;
}

.error-404-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,204,0,0.08) 0%, transparent 70%);
    z-index: -1;
}

.error-404 .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-404-content {
    max-width: 600px;
    padding: 120px var(--gap) 80px;
}

.error-404-code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 14rem);
    font-weight: 700;
    line-height: 1;
    color: var(--eu-yellow);
    opacity: 0.9;
    letter-spacing: -0.04em;
}

.error-404-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-top: 16px;
    margin-bottom: 16px;
}

.error-404-text {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 32px;
}

.error-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.error-404-links {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

.error-404-links-label {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.error-404-links ul {
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.error-404-links a {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.error-404-links a:hover {
    color: var(--eu-yellow);
}

@media (max-width: 768px) {
    .error-404-content {
        padding: 100px var(--gap) 60px;
    }

    .error-404-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-404-links ul {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- Maintenance Mode Page --- */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, #003399 0%, #002266 100%);
    font-family: 'Barlow Condensed', 'Inter', -apple-system, sans-serif;
}

.maintenance-content {
    max-width: 560px;
    padding: 40px 24px;
}

.maintenance-logo {
    height: 60px;
    width: auto;
    margin-bottom: 40px;
}

.maintenance-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
}

.maintenance-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFCC00;
    margin-bottom: 16px;
    line-height: 1.2;
}

.maintenance-text {
    font-family: 'Lora', 'Inter', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 32px;
}

.maintenance-contact {
    font-size: 0.95rem;
    opacity: 0.6;
}

.maintenance-contact a {
    color: #FFCC00;
    text-decoration: underline;
    text-underline-offset: 3px;
}
