:root {
    --navy: #1a2744;
    --gold: #b8972a;
    --gold-light: #d4af37;
    --cream: #f8f4ed;
    --cream-dark: #ede8de;
    --text: #2c2c2c;
    --text-muted: #6b6350;
    --white: #ffffff;
    --red-accent: #8b2635;
    --border: #d4c9b0;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
  }
  
  /* High Contrast overrides */
  body.high-contrast {
    --cream: #000;
    --cream-dark: #111;
    --text: #fff;
    --text-muted: #ccc;
    --navy: #000;
    --white: #111;
    --border: #444;
    --gold: #ffcc00;
  }
  
  body.high-contrast .tile { background: #111; border-color: #444; }
  body.high-contrast header { background: #000; }
  body.high-contrast .news-card, body.high-contrast .section-card, body.high-contrast .sidebar-box { background: #111; border-color: #444; }
  body.high-contrast .news-img { background: #222; }

  /* ── TOP BAR ── */
  .top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 6px 0;
    letter-spacing: 0.04em;
  }
  .top-bar .inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .top-bar a { color: rgba(255,255,255,0.75); text-decoration: none; }
  .top-bar a:hover { color: var(--gold-light); }
  .lang-flags { display: flex; gap: 10px; align-items: center; }
  .lang-flags span { cursor: pointer; font-size: 16px; opacity: 0.8; transition: opacity .2s; }
  .lang-flags span:hover { opacity: 1; }
  .accessibility-btn {
    background: none; border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.75); cursor: pointer; padding: 2px 8px;
    border-radius: 3px; font-size: 12px; display: flex; align-items: center; gap: 4px;
  }

  /* ── HEADER ── */
  header {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
  }
  .logo-area { display: flex; align-items: center; gap: 16px; text-decoration: none; }
  .logo-icon {
    width: 64px; height: 64px;
    background: var(--navy);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .logo-icon svg { width: 42px; height: 42px; }
  .logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .logo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
  }
  .header-right { display: flex; align-items: center; gap: 16px; }
  .search-box {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--cream);
  }
  .search-box input {
    border: none; background: transparent;
    padding: 8px 14px; font-size: 14px; width: 220px;
    font-family: inherit; outline: none; color: var(--text);
  }
  .search-box button {
    background: var(--navy); color: white; border: none;
    padding: 8px 16px; cursor: pointer; font-size: 14px;
    transition: background .2s;
  }
  .search-box button:hover { background: var(--gold); }
  .cj-logo {
    width: 52px; height: 52px;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; text-align: center; color: var(--text-muted);
    font-weight: 600; letter-spacing: 0.05em;
    flex-shrink: 0;
  }

  /* ── NAV ── */
  nav {
    background: var(--navy);
  }
  nav .nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
  }
  nav a, nav .dropbtn {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 14px 16px;
    font-size: 13px;
    letter-spacing: 0.03em;
    display: block;
    transition: background .2s, color .2s;
    position: relative;
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }
  nav a:hover, nav .dropbtn:hover, nav a.active {
    color: var(--gold-light);
    background: rgba(255,255,255,0.06);
  }
  nav a.active::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--gold-light);
  }

  /* ── DROPDOWN MENUS ── */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--navy);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 3px solid var(--gold);
    left: 0;
  }
  .dropdown-content a, .dropdown-submenu .dropbtn {
    color: rgba(255,255,255,0.85);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
  }
  .dropdown-content a:last-child {
    border-bottom: none;
  }
  .dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--gold-light);
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* NESTED SUBMENUS */
  .dropdown-submenu {
    position: relative;
  }
  .dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--navy);
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-left: 3px solid var(--gold);
  }
  .dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
  }

  /* ── HERO SLIDER ── */
  .hero {
    position: relative;
    overflow: hidden;
    height: 420px;
    background: var(--navy);
  }
  .slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; transition: opacity 0.8s ease;
    background-size: cover; background-position: center;
  }
  .slide.active { opacity: 1; }
  .slide-bg-1 {
    background: linear-gradient(135deg, #1a2744 0%, #2d4270 50%, #1a3a5c 100%);
  }
  .slide-bg-2 {
    background: linear-gradient(135deg, #2a1a10 0%, #5c3010 50%, #3a2010 100%);
  }
  .slide-bg-3 {
    background: linear-gradient(135deg, #0f2a1a 0%, #1a4a2a 50%, #0a3020 100%);
  }
  .slide-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
  }
  .slide-content {
    position: relative; z-index: 2;
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
    width: 100%;
  }
  .slide-tag {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--gold-light);
    margin-bottom: 12px; font-weight: 600;
  }
  .slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px; color: white;
    font-weight: 700; line-height: 1.15;
    max-width: 640px; margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  }
  .slide-content p {
    color: rgba(255,255,255,0.8); font-size: 16px;
    max-width: 500px; margin-bottom: 24px;
    font-style: italic;
  }
  .btn-primary {
    display: inline-block;
    background: var(--gold);
    color: white; text-decoration: none;
    padding: 12px 28px; border-radius: 3px;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    transition: background .2s, transform .2s;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

  .slider-nav {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
  }
  .slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    border: none; transition: background .2s, transform .2s;
  }
  .slider-dot.active { background: var(--gold-light); transform: scale(1.3); }
  .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none;
    color: white; width: 44px; height: 44px;
    border-radius: 50%; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background .2s;
  }
  .slider-arrow:hover { background: rgba(255,255,255,0.3); }
  .slider-arrow.prev { left: 20px; }
  .slider-arrow.next { right: 20px; }

  /* ── QUICK ACCESS TILES ── */
  .quick-tiles {
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border);
    padding: 0;
  }
  .quick-tiles .inner {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
  }
  .tile {
    padding: 20px 24px;
    border-right: 1px solid var(--border);
    text-align: center;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    transition: background .2s;
    background: linear-gradient(to bottom, var(--white), var(--cream-dark));
  }
  .tile:last-child { border-right: none; }
  .tile:hover { background: var(--navy); color: var(--white); }
  .tile:hover .tile-icon { filter: brightness(3); }
  .tile-icon {
    width: 52px; height: 52px;
    background: var(--navy);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: filter .2s;
  }
  .tile-icon svg { fill: var(--white); width: 26px; height: 26px; }

  /* ── MAIN LAYOUT ── */
  .page-main {
    max-width: 1240px; margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }

  /* ── SECTION TITLE ── */
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px; margin-bottom: 24px;
    display: flex; align-items: baseline; gap: 12px;
  }
  .section-title span {
    font-family: 'Source Serif 4', serif;
    font-size: 13px; font-weight: 400;
    color: var(--text-muted); margin-left: auto;
    text-transform: uppercase; letter-spacing: 0.08em;
  }
  .section-title a { color: var(--gold); text-decoration: none; font-size: 13px; margin-left: auto; }

  /* ── NEWS GRID ── */
  .news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
  }
  .news-card:hover { box-shadow: 0 6px 24px rgba(26,39,68,.12); transform: translateY(-2px); }
  .news-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .news-img {
    height: 180px;
    background: var(--cream-dark);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .news-card.featured .news-img { height: auto; }
  .news-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--border);
  }
  .news-img-bg-1 { background: linear-gradient(135deg, #e8e0d0, #d4c9b0); }
  .news-img-bg-2 { background: linear-gradient(135deg, #d0d8e0, #b0bcc9); }
  .news-img-bg-3 { background: linear-gradient(135deg, #d8e0d0, #b9c9b0); }
  .news-img-bg-4 { background: linear-gradient(135deg, #e0d0d8, #c9b0bc); }
  .news-cat {
    position: absolute; top: 12px; left: 12px;
    background: var(--red-accent); color: white;
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 3px 10px; border-radius: 2px; font-weight: 600;
  }
  .news-body { padding: 18px 20px; }
  .news-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
  .news-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px; font-weight: 600; color: var(--navy);
    line-height: 1.35; margin-bottom: 10px;
  }
  .news-card.featured .news-body h3 { font-size: 20px; }
  .news-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
  .read-more { color: var(--gold); font-size: 13px; text-decoration: none; font-weight: 600; }

  /* ── SECTIONS & FILIALE ── */
  .sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  .section-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
    text-align: center; cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    text-decoration: none; color: var(--text);
  }
  .section-card:hover { box-shadow: 0 4px 18px rgba(26,39,68,.1); transform: translateY(-2px); }
  .section-photo {
    height: 120px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
  }
  .sec-bg-1 { background: linear-gradient(135deg, #c8d8f0, #a0b8d8); }
  .sec-bg-2 { background: linear-gradient(135deg, #f0d8c8, #d8b8a0); }
  .sec-bg-3 { background: linear-gradient(135deg, #c8f0d8, #a0d8b8); }
  .sec-bg-4 { background: linear-gradient(135deg, #f0c8d8, #d8a0b8); }
  .sec-bg-5 { background: linear-gradient(135deg, #d8f0c8, #b8d8a0); }
  .sec-bg-6 { background: linear-gradient(135deg, #f0e8c8, #d8d0a0); }
  .section-card p {
    padding: 12px 14px;
    font-size: 13px; font-weight: 600;
    color: var(--navy); line-height: 1.3;
  }
  .section-card small { font-size: 11px; color: var(--text-muted); font-weight: 400; display: block; }

  /* ── SIDEBAR ── */
  .sidebar { display: flex; flex-direction: column; gap: 28px; }

  .sidebar-box {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
  }
  .sidebar-box-title {
    background: var(--navy);
    color: white; padding: 12px 18px;
    font-family: 'Playfair Display', serif;
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.04em;
  }
  .sidebar-box-body { padding: 16px 18px; }

  .program-list { list-style: none; font-size: 14px; }
  .program-list li {
    display: flex; justify-content: space-between;
    padding: 7px 0; border-bottom: 1px dotted var(--border);
    gap: 12px;
  }
  .program-list li:last-child { border-bottom: none; }
  .program-day { font-weight: 600; color: var(--navy); }
  .program-hrs { color: var(--text-muted); font-size: 13px; }

  .contact-list { font-size: 14px; list-style: none; }
  .contact-list li { padding: 6px 0; display: flex; gap: 10px; align-items: flex-start; }
  .contact-list li span:first-child { font-size: 16px; flex-shrink: 0; }

  .catalog-btn {
    display: block; text-align: center;
    background: var(--navy); color: white;
    padding: 13px; border-radius: 3px;
    text-decoration: none; font-weight: 600;
    font-size: 14px; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 10px;
    transition: background .2s;
  }
  .catalog-btn:hover { background: var(--gold); }

  .social-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .social-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border); border-radius: 3px;
    text-decoration: none; color: var(--navy);
    font-size: 13px; font-weight: 600;
    transition: background .2s, color .2s; flex: 1;
    justify-content: center;
  }
  .social-link:hover { background: var(--navy); color: white; }

  .event-list { list-style: none; font-size: 14px; }
  .event-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px dotted var(--border);
  }
  .event-item:last-child { border-bottom: none; }
  .event-date-box {
    flex-shrink: 0; width: 44px; text-align: center;
    background: var(--navy); color: white;
    border-radius: 3px; padding: 4px 6px;
  }
  .event-date-box .day { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; line-height: 1; }
  .event-date-box .month { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; }
  .event-info h4 { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; margin-bottom: 3px; }
  .event-info p { font-size: 12px; color: var(--text-muted); }

  /* ── SERVICES STRIP ── */
  .services-strip {
    background: var(--navy);
    padding: 40px 0;
    margin-top: 20px;
  }
  .services-strip .inner {
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
  }
  .services-strip .section-title {
    color: white; border-color: var(--gold);
  }
  .services-strip .section-title a { color: var(--gold-light); }
  .services-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  }
  .service-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px; text-align: center; padding: 20px 14px;
    color: rgba(255,255,255,0.85); font-size: 13px;
    cursor: pointer; transition: background .2s, transform .2s;
    text-decoration: none;
  }
  .service-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); color: white; }
  .service-card .icon { font-size: 28px; margin-bottom: 10px; }

  /* ── FOOTER ── */
  footer {
    background: #111827;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 0;
  }
  .footer-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
  }
  footer h4 {
    color: white; font-family: 'Playfair Display', serif;
    font-size: 15px; margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
  }
  footer ul { list-style: none; }
  footer ul li { margin-bottom: 8px; }
  footer ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color .2s; }
  footer ul li a:hover { color: var(--gold-light); }
  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700; color: white;
    margin-bottom: 12px;
  }
  .footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    max-width: 1240px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: rgba(255,255,255,0.4);
  }
  .footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
  .footer-bottom a:hover { color: var(--gold-light); }
  .eu-logos { display: flex; gap: 10px; align-items: center; }
  .eu-badge {
    background: rgba(255,255,255,0.08); border-radius: 3px;
    padding: 4px 8px; font-size: 10px; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
  }

  /* ── GDPR BANNER ── */
  .gdpr-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26, 39, 68, 0.97);
    color: rgba(255,255,255,0.85);
    padding: 16px 24px;
    display: flex; align-items: center;
    gap: 20px; flex-wrap: wrap;
    border-top: 2px solid var(--gold);
    font-size: 13px; line-height: 1.5;
  }
  .gdpr-banner p { flex: 1; min-width: 260px; }
  .gdpr-banner a { color: var(--gold-light); }
  .gdpr-btns { display: flex; gap: 10px; }
  .btn-accept {
    background: var(--gold); color: white; border: none;
    padding: 9px 22px; border-radius: 3px; cursor: pointer;
    font-size: 13px; font-weight: 600; transition: background .2s;
  }
  .btn-accept:hover { background: var(--gold-light); }
  .btn-details {
    background: transparent; color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 9px 18px; border-radius: 3px; cursor: pointer;
    font-size: 13px; transition: border-color .2s;
  }
  .btn-details:hover { border-color: rgba(255,255,255,0.7); color: white; }

  /* ── VISITOR COUNTER ── */
  .visitor-counter {
    position: fixed; bottom: 80px; right: 20px; z-index: 50;
    background: var(--navy); color: white;
    padding: 10px 16px; border-radius: 4px;
    font-size: 12px; text-align: center;
    border: 1px solid var(--gold);
    display: none;
  }
  .visitor-counter .count { font-size: 20px; font-weight: 700; color: var(--gold-light); }

  /* ── MOBILE MENU ── */
  .mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 24px; cursor: pointer; color: white; padding: 10px;
  }

  /* ── ANIMATED ELEMENTS ── */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate-in { animation: fadeInUp 0.5s ease forwards; }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-card.featured { display: block; }
    .news-card.featured .news-img { height: 200px; }
    .sections-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .page-main { grid-template-columns: 1fr; }
    .quick-tiles .inner { grid-template-columns: repeat(2, 1fr); }
    nav .nav-inner { flex-wrap: wrap; }
    nav a { padding: 10px 14px; font-size: 13px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .hero { height: 280px; }
    .slide-content h2 { font-size: 26px; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .search-box input { width: 150px; }
    .logo-text h2 { font-size: 16px; }
    .sections-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; }
  }