/* ==========================================================================
   BASAR (UNI FREIBURG) EXACT HOMEPAGE & ACADEMIC LAYOUT STYLES
   ========================================================================== */

:root {
  --freiburg-blue: #004a99;       /* Blu Uni Freiburg */
  --freiburg-darkblue: #002b5c;   /* Blu scuro header/barre */
  --freiburg-red: #c1002a;        /* Rosso accento bordeaux */
  --bg-page: #f4f4f6;             /* Sfondo grigio accademico */
  --bg-white: #ffffff;
  --text-dark: #222222;
  --text-muted: #555555;
  --border-light: #dcdcdc;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", Arial, Helvetica, sans-serif;
  --max-width: 1140px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 15px;
}

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

a:hover {
  color: var(--freiburg-red);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--freiburg-darkblue);
  font-weight: 700;
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */

.top-bar {
  background-color: var(--freiburg-darkblue);
  color: #ffffff;
  padding: 0.4rem 0;
  font-size: 0.82rem;
  border-bottom: 3px solid var(--freiburg-red);
}

.top-bar .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #d0e1f9;
}

.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0 1.2rem 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.5px;
}

.site-title a {
  color: var(--freiburg-darkblue);
}

.site-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem 0;
}

.main-navigation {
  background-color: var(--freiburg-blue);
  border-radius: 2px;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-navigation li a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.main-navigation li a:hover,
.main-navigation li.nav-current a {
  background-color: var(--freiburg-red);
  color: #ffffff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   PAGE CONTAINER & LAYOUT
   -------------------------------------------------------------------------- */

.site-container {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   HOMEPAGE SECTION 1: HERO PHOTO & INTRO BANNER
   -------------------------------------------------------------------------- */

.basar-hero {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.basar-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.basar-hero-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--freiburg-darkblue), var(--freiburg-blue));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.basar-hero-placeholder h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.basar-hero-placeholder p {
  font-size: 1.1rem;
  color: #d0e1f9;
  max-width: 700px;
  margin: 0;
}

.basar-hero-content {
  padding: 1.8rem 2rem;
  border-top: 4px solid var(--freiburg-red);
}

.basar-hero-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.basar-hero-content p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   HOMEPAGE SECTION 2: CARDS INFORMATIVE GRID (3-COLUMN GRID)
   -------------------------------------------------------------------------- */

.section-heading {
  font-size: 1.4rem;
  color: var(--freiburg-darkblue);
  border-bottom: 2px solid var(--freiburg-red);
  padding-bottom: 0.4rem;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--freiburg-blue);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--freiburg-red);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.info-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.info-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.info-card-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--freiburg-blue);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.info-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.info-card-title a {
  color: var(--freiburg-darkblue);
}

.info-card-excerpt {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.info-card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--freiburg-blue);
}

/* --------------------------------------------------------------------------
   HOMEPAGE SECTION 3: LISTA PUBBLICAZIONI SCIENTIFICHE
   -------------------------------------------------------------------------- */

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.publication-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--freiburg-blue);
  padding: 1.4rem 1.6rem;
  border-radius: 2px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
  border-left-color: var(--freiburg-red);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.publication-cover {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  border-radius: 2px;
}

.publication-details {
  flex-grow: 1;
}

.publication-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-transform: uppercase;
}

.publication-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
}

.publication-title a {
  color: var(--freiburg-darkblue);
}

.publication-authors {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-style: italic;
}

.publication-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   SINGLE POST / PAGE STYLING
   -------------------------------------------------------------------------- */

.article-single {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 3px;
  margin-bottom: 2.5rem;
}

.article-header {
  border-bottom: 2px solid var(--freiburg-blue);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
}

.article-title {
  font-size: 2.2rem;
  color: var(--freiburg-darkblue);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gh-content {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: #222222;
}

.gh-content p {
  margin-bottom: 1.4rem;
}

.gh-content h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--freiburg-darkblue);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.3rem;
  margin-top: 2rem;
}

.gh-content blockquote {
  border-left: 4px solid var(--freiburg-red);
  margin: 1.5rem 0;
  padding: 0.6rem 0 0.6rem 1.2rem;
  background-color: #fafafa;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   GHOST KOENIG REQUIRED CLASSES (FOR GSCAN COMPLIANCE)
   -------------------------------------------------------------------------- */

.kg-canvas {
  display: block;
}

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--freiburg-darkblue);
  color: #bcd0e8;
  font-size: 0.88rem;
  padding: 2.5rem 0 1.5rem 0;
  border-top: 4px solid var(--freiburg-red);
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-container a {
  color: #ffffff;
}
