/* Art FaCTory Fair - Ergo theme (restored) */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

a {
  color: #a401ab;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.flright { float: right; }
.top10 { margin-top: 10px; }
.top5 { margin-top: 5px; }

/* 960 grid (24 columns) */
.container {
  width: 1180px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.row {
  width: 100%;
  margin: 0 auto 10px;
}

.row.grid_24,
#mainmenu.grid_24 { width: 100%; }

.row::before,
.row::after {
  content: "";
  display: table;
}

.row::after { clear: both; }

.col {
  float: left;
  display: inline;
  margin: 0 5px;
}

.grid_1  { width: 30px; }
.grid_2  { width: 70px; }
.grid_3  { width: 110px; }
.grid_4  { width: 150px; }
.grid_5  { width: 190px; }
.grid_6  { width: 230px; }
.grid_7  { width: 270px; }
.grid_8  { width: 310px; }
.grid_9  { width: 350px; }
.grid_10 { width: 390px; }
.grid_11 { width: 430px; }
.grid_12 { width: 470px; }
.grid_13 { width: 510px; }
.grid_14 { width: 550px; }
.grid_15 { width: 590px; }
.grid_16 { width: 630px; }
.grid_17 { width: 670px; }
.grid_18 { width: 710px; }
.grid_19 { width: 750px; }
.grid_20 { width: 790px; }
.grid_21 { width: 830px; }
.grid_22 { width: 870px; }
.grid_23 { width: 910px; }
.grid_24 { width: 950px; }

.col.full { width: 100%; margin: 0; float: none; }

/* Header */
#header {
  background: #1a1a1a;
  border-bottom: 3px solid #a401ab;
}

.top-menu {
  padding: 8px 0;
  font-size: 12px;
  color: #ccc;
}

.top-menu a {
  color: #ccc;
}

.top-menu a:hover {
  color: #fff;
}

.login-menu strong {
  color: #fff;
}

#langswitch ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#langswitch li {
  display: inline-block;
  margin-right: 5px;
}

#langswitch a {
  display: inline-block;
  width: 24px;
  height: 16px;
  background: #555;
  text-indent: -9999px;
  overflow: hidden;
}

#langswitch .lang-active a {
  background: #a401ab;
}

.sub-header {
  padding: 15px 0;
  background: #fff;
}

.logo a {
  display: block;
  width: 280px;
  height: 70px;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}

.logo a::before {
  content: "Art FaCTory Fair";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-indent: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 70px;
  color: #a401ab;
  letter-spacing: 1px;
}

.logo a:hover::before {
  color: #7a0180;
}

#search-box {
  margin-top: 18px;
}

#search-box input,
#inputString {
  width: 100%;
  max-width: 280px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

/* Main navigation */
#mainmenu {
  background: #a401ab;
  margin: 0;
  position: relative;
}

.menu-mobile-wrapper {
  display: none;
}

#menu-mobile-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.menu-parent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-parent > li {
  float: left;
  position: relative;
}

.menu-parent > li > a {
  display: block;
  padding: 14px 12px;
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.menu-parent > li > a:hover,
.menu-parent > li.active > a,
.menu-parent > li.homepage.active > a {
  background: #7a0180;
  text-decoration: none;
}

.menu-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

.menu-parent > li:hover > .menu-submenu {
  display: block;
}

.menu-submenu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-transform: none;
  border-bottom: 1px solid #eee;
}

.menu-submenu li a:hover {
  background: #f5f5f5;
  color: #a401ab;
  text-decoration: none;
}

/* Breadcrumbs */
#crumbs {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 12px;
}

#crumbs nav {
  color: #666;
}

#crumbs a {
  color: #a401ab;
}

.bread-home::after {
  content: " / ";
  color: #999;
}

/* Content layout */
#home-top-plugin,
#topplugin,
#content-left-right,
#content-left {
  padding: 20px 0;
}

#page {
  margin-bottom: 20px;
}

.content-box {
  background: #fff;
}

/* Posts */
.post-header h1,
.post-header h1 span {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #a401ab;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.post-body {
  font-size: 15px;
  line-height: 1.6;
}

.post-body p {
  margin: 0 0 12px;
}

/* Widgets */
.widget-wrap {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.widget-inner {
  padding: 0;
}

.widget-wrap .header,
.widget-wrap h4.header {
  margin: 0;
  padding: 10px 15px;
  background: #333;
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}

.widget-wrap .header span {
  color: #fff;
}

.widget-body {
  padding: 15px;
}

.widget-wrap.light .header { background: #666; }
.widget-wrap.dark .header { background: #222; }
.widget-wrap.red .header { background: #c0392b; }
.widget-wrap.green .header { background: #27ae60; }
.widget-wrap.dark.green .header { background: #1e8449; }

.widget-wrap.nowrap .widget-inner { padding: 0; }

/* Boxes */
.box {
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f9f9f9;
  border-left: 3px solid #a401ab;
}

.box.whitebox {
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid #a401ab;
}

/* Testimonials */
.testimonial {
  font-style: italic;
  color: #555;
  margin: 0 0 8px;
}

/* Footer */
#footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 20px 0;
  margin-top: 20px;
}

#footer a {
  color: #a401ab;
}

.copyright {
  font-size: 12px;
}

.ficons a {
  display: inline-block;
  margin-left: 8px;
  width: 24px;
  height: 24px;
  background: #444;
  border-radius: 3px;
  text-indent: -9999px;
  overflow: hidden;
}

.ficons a:hover {
  background: #a401ab;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 400px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

button,
input[type="submit"],
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #a401ab;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: #7a0180;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

table th,
table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background: #f5f5f5;
  font-weight: bold;
}

/* Utility */
.hide-phone { display: block; }

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

h3 {
  font-family: "Oswald", Arial, sans-serif;
  color: #a401ab;
  font-weight: 400;
}

/* Polished fallback for the archived site (original media is unavailable). */
body {
  background: #f4f3f1 !important;
}

#header {
  box-shadow: 0 3px 18px rgba(0, 0, 0, .16);
}

.sub-header {
  border-radius: 0 0 4px 4px;
}

.logo a::before {
  content: "ART FaCTory";
  letter-spacing: 3px;
}

.logo a::after {
  content: "CONTEMPORARY ART FAIR · CATANIA";
  position: absolute;
  left: 2px;
  top: 45px;
  text-indent: 0;
  color: #777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

#mainmenu { border-radius: 4px 4px 0 0; }
.menu-parent { display: flex; }
.menu-parent > li { flex: 1 1 auto; }
.menu-parent > li > a {
  padding: 13px 7px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
}

#home-top-plugin { padding-top: 12px; }
#home-top-plugin .widget-wrap { border: 0; border-radius: 5px; overflow: hidden; }

/* The recovered HTML contains empty slides. Show a useful art-fair banner. */
.ei-slider {
  min-height: 330px;
  background:
    linear-gradient(105deg, rgba(13, 10, 18, .94) 0 45%, rgba(164, 1, 171, .55)),
    radial-gradient(circle at 78% 30%, #e14bea 0 5%, transparent 5.5%),
    linear-gradient(135deg, #221328, #a401ab);
}

.ei-slider::before {
  content: "ART FaCTory FAIR";
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 31%;
  max-width: 520px;
  color: #fff;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
}

.ei-slider::after {
  content: "Contemporary art, exhibitions and events in Catania";
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 57%;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  letter-spacing: .5px;
}

.ei-slider-thumbs { display: none; }
.content-box, .widget-wrap {
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.post-body { color: #414141; }

/* Internal pages: the legacy 24-column widths add up wider than their parent. */
#content-left {
  width: 100%;
}

#content-left #page {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

#content-left-right {
  width: 100%;
}

#content-left-right #page {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

#content-left-right #sidebar {
  flex: 0 0 230px;
  width: 230px;
  margin: 0;
}

#content-left-right #maincontent {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
}

#content-left-right #sidebar2 {
  flex: 0 0 190px;
  width: 190px;
  margin: 0;
}

#content-left-right #maincontent .content-box {
  padding: 26px 30px;
}

#content-left-right #maincontent .row.grid_24 {
  margin: 0;
}

#content-left #sidebar {
  flex: 0 0 270px;
  width: 270px;
  margin: 0;
}

#content-left #maincontent {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
}

#maincontent .content-box {
  min-height: 420px;
  padding: 24px 28px;
}

#infopoint-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#infopoint-list .box {
  width: 100%;
  margin: 0 0 7px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 980px) {
  .container { width: 100%; }

  .col,
  [class*="grid_"] {
    float: none;
    width: 100% !important;
    margin: 0 0 15px;
  }

  #mainmenu {
    position: relative;
    z-index: 1000;
  }

  .menu-mobile-wrapper {
    display: block;
    padding: 10px 15px;
    position: relative;
    z-index: 1001;
  }

  #menu-mobile-trigger {
    display: block;
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-sizing: border-box;
    border: 0;
    background: transparent;
  }

  #menu-mobile-trigger span,
  #menu-mobile-trigger::before,
  #menu-mobile-trigger::after {
    display: block;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    content: "";
    pointer-events: none;
  }

  #menu-mobile-trigger span { margin: 0; }

  #menu-mobile-trigger.open::before {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-mobile-trigger.open span {
    opacity: 0;
  }

  #menu-mobile-trigger.open::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  #menu-mobile-trigger::before,
  #menu-mobile-trigger::after,
  #menu-mobile-trigger span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-parent,
  #topmenu {
    display: none !important;
    clear: both;
    flex-direction: column;
  }

  .menu-parent.open,
  #topmenu.open {
    display: block !important;
  }

  .menu-parent > li {
    float: none;
    width: 100%;
    flex: none;
  }

  .menu-parent > li:hover > .menu-submenu {
    display: none;
  }

  .menu-submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.1);
  }

  .menu-submenu.open {
    display: block;
  }

  .menu-submenu li a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
  }

  .hide-phone { display: none; }

  .logo a::before {
    font-size: 22px;
    line-height: 50px;
  }

  .ei-slider { min-height: 260px; height: 260px !important; }
  .ei-slider::after { top: 61%; right: 7%; font-size: 14px; }

  #content-left #page { display: block; }
  #content-left #sidebar,
  #content-left #maincontent { width: 100%; margin: 0 0 18px; }
  #maincontent .content-box { padding: 20px; }

  #content-left-right #page { display: block; }
  #content-left-right #sidebar,
  #content-left-right #maincontent,
  #content-left-right #sidebar2 { width: 100%; margin: 0 0 18px; }
}

@media (max-width: 560px) {
  .top-menu .grid_6, #search-box { display: none; }
  .login-menu { float: none; text-align: center; }
  .sub-header { padding: 4px 0; }
  .logo a { width: 100%; height: 62px; }
  .logo a::after { top: 40px; }
  .ei-slider::before { top: 28%; }
  .ei-slider::after { top: 58%; line-height: 1.35; }
}
