/* =============================================
   Ermanno Brosch — Main Stylesheet
   ============================================= */

*{margin:0;padding:0;box-sizing:border-box}

:root{
  --blue:#204376;
  --blue-dark:#162e52;
  --blue-light:#e8edf5;
  --ink:#212529;
  --ink-muted:#6c757d;
  --rule:#dee2e6;
  --bg:#ffffff;
  --bg-soft:#f8f9fa;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}

body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  font-size:17px;
  line-height:1.7;
}

/* ---- NAV ---- */
nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:0 2rem;height:56px;
  background:var(--blue);
  position:sticky;top:0;z-index:100;
}
.nav-logo{
  color:#fff;font-size:1rem;font-weight:600;
  letter-spacing:0.01em;white-space:nowrap;
  text-decoration:none;
}
.nav-links{
  display:flex;gap:0.2rem;align-items:center;
  list-style:none;flex:1;justify-content:center;
}
.nav-links a{
  color:rgba(255,255,255,0.85);font-size:0.99rem;
  padding:0.4rem 0.7rem;text-decoration:none;
  border-radius:4px;transition:all 0.15s;white-space:nowrap;
}
.nav-links a:hover{color:#fff;background:rgba(255,255,255,0.15)}
.nav-links a.active{color:#fff;font-weight:600}
.dropdown{position:relative}
.dropdown-menu{
  display:none;position:absolute;top:100%;left:0;
  background:#fff;border:0.5px solid var(--rule);
  border-radius:4px;padding:0.4rem 0;
  min-width:200px;z-index:200;
  box-shadow:0 4px 16px rgba(0,0,0,0.12);
}
.dropdown:hover .dropdown-menu{display:block}
.dropdown-menu a{
  display:block;padding:0.45rem 1rem;
  color:var(--ink);font-size:0.86rem;border-radius:0;
}
.dropdown-menu a:hover{background:var(--blue-light);color:var(--blue)}

/* ---- LANG SWITCHER ---- */
.lang-switcher{display:flex;gap:0.25rem;flex-shrink:0}
.lang-btn{
  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.4);
  padding:0.2rem 0.55rem;font-size:0.75rem;font-weight:500;
  cursor:pointer;color:rgba(255,255,255,0.85);
  font-family:var(--font);border-radius:3px;
  transition:all 0.15s;letter-spacing:0.04em;
}
.lang-btn:hover{background:rgba(255,255,255,0.28);color:#fff}
.lang-btn.active{background:#fff;color:var(--blue);border-color:#fff;font-weight:700}

/* ---- HERO BANNER (inner pages) ---- */
.page-hero{
  height:260px;
  background-size:cover;background-position:center;
  position:relative;
  display:flex;align-items:flex-end;
}
.page-hero::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(32,67,118,0.72) 0%,rgba(32,67,118,0.1) 100%);
}
.page-hero-title{
  position:relative;z-index:1;
  color:#fff;font-size:2.2rem;font-weight:700;
  padding:1.5rem 2.5rem;
}

/* ---- PAGE CONTENT ---- */
.page-content{
  max-width:860px;margin:0 auto;
  padding:3.5rem 2.5rem 5rem;
}
.page-content h2{
  font-size:1.3rem;font-weight:700;
  color:var(--blue);margin:2.5rem 0 0.75rem;
}
.page-content p{
  font-size:1rem;color:#333;
  line-height:1.8;margin-bottom:1rem;
}
.page-content ul{
  margin:0.5rem 0 1rem 1.5rem;
}
.page-content ul li{
  font-size:1rem;color:#333;
  line-height:1.8;margin-bottom:0.3rem;
}
.page-content a{color:var(--blue);text-decoration:underline}
.page-content a:hover{color:var(--blue-dark)}

/* ---- SECTION UTILITIES ---- */
.section{padding:4.5rem 2.5rem}
.section-alt{background:var(--bg-soft)}
.section-label{
  font-size:0.75rem;letter-spacing:0.12em;
  text-transform:uppercase;color:var(--blue);
  font-weight:600;margin-bottom:0.4rem;
}
.section-title{font-size:1.9rem;font-weight:700;color:var(--ink);margin-bottom:2rem}

/* ---- BUTTONS ---- */
.btn-primary{
  display:inline-block;
  background:var(--blue);color:#fff;
  border:2px solid var(--blue);
  padding:0.65rem 1.5rem;font-size:0.9rem;font-weight:500;
  text-decoration:none;border-radius:4px;
  font-family:var(--font);transition:all 0.15s;cursor:pointer;
}
.btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}
.btn-outline{
  display:inline-block;
  background:#fff;color:var(--blue);
  border:2px solid var(--blue);
  padding:0.65rem 1.5rem;font-size:0.9rem;font-weight:500;
  text-decoration:none;border-radius:4px;
  font-family:var(--font);transition:all 0.15s;cursor:pointer;
}
.btn-outline:hover{background:var(--blue-light)}

/* ---- FOOTER ---- */
footer{
  padding:1.5rem 2.5rem;
  border-top:1px solid var(--rule);
  background:var(--bg-soft);
  display:flex;justify-content:space-between;
  align-items:center;flex-wrap:wrap;gap:0.75rem;
}
.footer-note{font-size:0.82rem;color:var(--ink-muted)}
.footer-links{display:flex;gap:1.5rem}
.footer-links a{font-size:0.82rem;color:var(--blue);text-decoration:none}
.footer-links a:hover{text-decoration:underline}

/* ---- PUBLICATIONS ---- */
.pub-section{margin-bottom:2.5rem}
.pub-section h2{
  font-size:1.1rem;font-weight:700;
  color:var(--blue);
  border-bottom:2px solid var(--blue);
  padding-bottom:0.4rem;margin-bottom:1.2rem;
}
.pub-item{
  font-size:0.97rem;color:#333;
  line-height:1.75;margin-bottom:1rem;
  padding-left:1rem;border-left:3px solid var(--blue-light);
}
.pub-item a{color:var(--blue)}
.pub-item em{font-style:italic}

/* ---- EXPERTISE GRID ---- */
.expertise-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.exp-item{border-top:3px solid var(--blue);padding-top:1rem}
.exp-label{
  font-size:0.78rem;font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;
  color:var(--blue);margin-bottom:0.5rem;
}
.exp-text{font-size:0.97rem;color:#444;line-height:1.7}

/* ---- COLLAB CARDS ---- */
.collab-card{
  border:1px solid var(--rule);border-radius:6px;
  padding:1.75rem;margin-bottom:1.5rem;
  background:#fff;
}
.collab-card h3{
  font-size:1.05rem;font-weight:700;
  color:var(--blue);margin-bottom:0.6rem;
}
.collab-card p{font-size:0.97rem;color:#444;line-height:1.75;margin-bottom:0}

/* ---- MOBILE NAV TOGGLE ---- */
.nav-toggle{
  display:none;background:none;border:none;
  cursor:pointer;padding:0.3rem;
}
.nav-toggle span{
  display:block;width:22px;height:2px;
  background:#fff;margin:4px 0;border-radius:2px;
  transition:all 0.2s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:900px){
  .expertise-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:768px){
  nav{padding:0 1rem;flex-wrap:wrap;height:auto;padding:0.6rem 1rem;gap:0.5rem}
  .nav-links{display:none;width:100%;flex-direction:column;align-items:flex-start;padding:0.5rem 0 0.75rem}
  .nav-links.open{display:flex}
  .nav-links a{font-size:0.95rem;padding:0.5rem 0.5rem}
  .dropdown-menu{position:static;box-shadow:none;border:none;padding:0 0 0 1rem;display:block;background:transparent}
  .dropdown-menu a{color:rgba(255,255,255,0.8);font-size:0.88rem}
  .dropdown-menu a:hover{background:transparent;color:#fff}
  .nav-toggle{display:block}
  .page-hero{height:180px}
  .page-hero-title{font-size:1.6rem;padding:1rem 1.25rem}
  .page-content{padding:2.5rem 1.25rem 4rem}
  .section{padding:3rem 1.25rem}
  footer{flex-direction:column;text-align:center}
  .expertise-grid{grid-template-columns:1fr}
}

@media(max-width:480px){
  .expertise-grid{grid-template-columns:1fr}
}
