@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,800;1,400&family=Inter:wght@400;500;600&display=swap');

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

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

body {
  margin: 0;
  padding: 0;
  background: #0b0a09;
  color: #e8ddd0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #c89665;
  text-decoration: underline;
}
a:hover {
  color: #e8ddd0;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: #e8ddd0;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: 3.4rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 2.9rem; font-weight: 600; }

span { margin: 0; }

#container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
  /* background: #141311; */
  /* border: 1px solid #26231e; */
  background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('/images/bg.jpg');
}

#header { padding: 0; }

#pageHeader {
  background: linear-gradient(135deg, #0b0a09 0%, #1a1714 60%, #0b0a09 100%);
  color: #e8ddd0;
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid #26231e;
}
#pageHeader::before {
  content: "";
  display: block;
  height: 3px;
  background: #c89665;
  margin: 0 auto 32px;
  width: min(50%, 240px);
}
#pageHeader h1 {
  font-weight: 800;
  font-size: clamp(4.8rem, 8vw, 6.8rem);
  margin: 0 0 0.4em;
  display: block;
}
#pageHeader h2 {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3rem, 5vw, 4rem);
  color: #b9a893;
  margin: 0;
  display: block;
}

/* preamble — stesso aspetto delle card .info */
#preamble {
  background: #1c1a18;
  border: 1px solid #26231e;
  border-left: 3px solid #c89665;
  padding: 26px 28px;
  max-width: 920px;
  margin: 44px auto 24px;
}

#preamble h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: #e8ddd0;
  margin: 0 0 10px;
  border-bottom: none;
  padding-bottom: 0;
}
#preamble p {
  color: #b9a893;
  margin: 0 0 14px;
}
#preamble form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}

/* main */
#main {
  padding: 3px 0 52px;
  max-width: 920px;
  margin: 0 auto;
}
#main p {
  color: #b9a893;
  margin: 0 0 14px;
}

/* info cards */
.info {
  background: #1c1a18;
  border: 1px solid #26231e;
  border-left: 3px solid #c89665;
  padding: 26px 28px;
  margin-bottom: 24px;
}
.info h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: #e8ddd0;
  margin: 0 0 10px;
}
.info p {
  margin: 0 0 10px;
  color: #b9a893;
}
.info p:last-child { margin-bottom: 0; }

/* navbar mobile */
#barra {
  background: #0b0a09 !important;
  border-bottom: 1px solid #26231e;
}
.navbar-brand {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}
.navbar-brand span {
  font-size: 28px !important;
  color: #c89665 !important;
}
.navbar-toggle {
  border: none;
  background: transparent;
  margin-top: 0;
}
.navbar-toggle:hover,
.navbar-toggle:focus {
  background: transparent;
}
.icon-bar {
  background: #b9a893;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  margin: 4px 0;
}
.navbar-collapse {
  background: #0b0a09;
  border-top: 1px solid #26231e;
}
#barra .navbar-brand,
#barra .nav > li > a {
  color: #b9a893 !important;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
}
#barra .nav > li > a:hover {
  color: #e8ddd0 !important;
  background: rgba(200, 150, 101, 0.1);
}
.menub { padding: 12px 0; }
.menub .title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c89665 !important;
  margin: 0 16px 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #26231e;
}
.menub ul {
  margin: 0;
  padding: 0 16px 12px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  line-height: 1.6;
  list-style: none;
}
.menub ul li { margin: 2px 0; }
.menub ul li a {
  color: #b9a893 !important;
}
.menub ul li a:hover { color: #e8ddd0 !important; }

/* form inputs */
.little_search {
  width: 100%;
  max-width: 270px;
  padding: 8px 10px;
  font-size: 1.6rem;
  border: 1px solid #3a342d;
  border-radius: 5px;
  background: #141311;
  margin-bottom: 8px;
  margin-right: 8px;
  /* color: #e8ddd0; */
}
.login {
  padding: 8px 16px;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid #c89665;
  background: #c89665;
  color: #0b0a09 !important;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 8px;
  margin-right: 8px;
}
.login:hover { background: #e8b685; }

/* separatori secolo */
.separ {
  margin: 0;
  padding: 0;
}
.separ:empty {
  height: 14px;
  margin: 6px 0;
}
.separ:not(:empty) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #c89665;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.separ:not(:empty)::before {
  content: "";
  flex: 1;
  height: 1px;
  background: #3a342d;
}
.separ img { display: none; }

.fumetto {
  display: inline-block;
  background: #c89665;
  color: #0b0a09;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 4px 12px;
  border-radius: 2px;
  line-height: 1.4;
  white-space: nowrap;
}

/* liste libri */
#preamble > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 14px;
  /* border: 1px solid #26231e; */
  background: #1c1a18;
}
#preamble > table td {
  padding: 12px 14px;
  vertical-align: middle;
}
#preamble > table td:first-child { width: 110px; }
#preamble > table td a {
  font-weight: 600;
  color: #e8ddd0;
  font-size: 1.9rem;
  line-height: 1.55;
}
#preamble > table td a b {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  color: #c89665;
  margin-bottom: 4px;
}

/* immagini */
.im {
  max-width: 100%;
  height: auto;
  border: 1px solid #3a342d;
  border-radius: 2px;
  display: block;
}
.interr {
  width: 85px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #4a443d;
  border-radius: 2px;
  color: #3a342d;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5rem;
}
#preamble > table td:last-child img { height: 22px; opacity: 0.6; }

/* dettaglio libro */
#preamble fieldset {
  width: 100% !important;
  max-width: 760px;
  margin: 40px auto 24px !important;
  padding: 24px 28px !important;
  background: #1c1a18 !important;
  border: 1px solid #706552 !important;
  color: #e8ddd0 !important;
  line-height: 1.8;
}
/* dettaglio libro — ereditato da body, nessun override */
#preamble fieldset legend {
  color: #c89665 !important;
  background: #251e18 !important;
  border-bottom: 1px solid #3d342b;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 8px;
}
#preamble fieldset a { color: #c89665 !important; }
#preamble fieldset a:hover { color: #e8ddd0 !important; }
#preamble fieldset strong { color: #e8ddd0; }
#preamble fieldset table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
}
#preamble fieldset table td {
  padding: 6px 10px 6px 0;
  vertical-align: top;
  line-height: 1.7;
}
#preamble fieldset table td:first-child {
  color: #c89665;
  font-weight: 600;
  /* white-space: nowrap; */
  width: 130px;
}
#preamble fieldset .table1 td { padding: 6px; }
#preamble fieldset .table1 img { max-width: 100%; height: auto; }
#preamble fieldset img.im { max-width: 220px; }

/* footer */
#footer {
  text-align: center;
  padding: 32px 20px;
  background: #0b0a09;
  color: #7a6e5e;
  margin: 0;
}
#footer a { color: #b9a893; }
#footer a:hover { color: #e8ddd0; text-decoration: underline; }
#footer img { vertical-align: middle; opacity: 0.5; }

/* legacy */
.acronym { cursor: help; }
.acronym:hover { border-bottom: 2px solid #c89665; }
.divis, .collage, .collage2,
.area_barra_1, .area_privacy, #counter, #counter2 {
  display: none;
}
.table1 { width: 100%; border-collapse: collapse; }

/* responsive */
@media (max-width: 767px) {
  #container { padding: 0 14px; padding-top: 64px; }
  #pageHeader { padding: 48px 16px 40px; }
  #preamble, #main { padding-left: 14px; padding-right: 14px; }
  .info { padding: 20px; }
  #preamble > table td { padding: 10px; }
  #preamble > table td:first-child { width: 80px; }
  .interr { width: 70px; height: 94px; font-size: 1.6rem; }
  #preamble fieldset { padding: 18px 20px !important; }
}



/* Desktop sitemap overlay */
.site-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: #1a1714; */
    background: url('/images/bg3.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 9999;
    overflow-y: auto;
    transition: opacity 0.4s ease;
}
.site-map-overlay.collapsing {
    height: 100% !important;
    overflow: hidden !important;
    opacity: 0;
}
.site-map-overlay.collapse {
    opacity: 0;
    visibility: hidden;
}
.site-map-overlay.collapse.in {
    opacity: 1;
    visibility: visible;
}
.site-map-overlay a {
    color: #3c2411;
    font-size: 2.3rem;
    font-weight: bold;
}
.site-map-overlay ul {
    list-style: none;
    padding-left: 0;
}
.site-map-overlay ul li {
    list-style: none !important;
    line-height: 1.5 !important;
}

/* Menu mobile: espandi completamente */
@media (max-width: 767px) {
    #barra .navbar-collapse {
        max-height: none !important;
        overflow-y: auto !important;
        padding-bottom: 40px !important;
    }
}
