
:root{
  --navy:#102f50;
  --blue:#1e4f7a;
  --gold:#c79a3b;
  --paper:#f7f4ed;
  --text:#24313d;
  --muted:#66717c;
  --line:#d9dee3;
  --white:#ffffff;
  --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);line-height:1.65;background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue)}
.container{width:min(92%,var(--max));margin:auto}
.topbar{background:var(--navy);color:white;font-size:.92rem}
.topbar .container{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.55rem 0}
header{background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100}
.header-row{display:flex;justify-content:space-between;align-items:center;gap:2rem;min-height:84px}
.brand{display:flex;align-items:center;gap:1.2rem;text-decoration:none;color:var(--navy)}
.badge{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:white;border:3px solid var(--gold);font-weight:bold}
.brand strong,.brand span{display:block}
.brand span{font-size:.86rem;color:var(--muted)}
nav ul{list-style:none;display:flex;gap:1rem;flex-wrap:wrap;margin:0;padding:0;justify-content:flex-end}
nav a{text-decoration:none;font-weight:bold;color:var(--navy);font-size:.93rem}
nav a:hover{color:var(--gold)}
.language{border:1px solid var(--line);padding:.28rem .5rem;border-radius:3px}
.hero{background:linear-gradient(135deg,#0d2742,#173a63 62%,#315f8b);color:white;padding:5.5rem 0 4.8rem}
.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:3rem;align-items:center}
.kicker{text-transform:uppercase;letter-spacing:.12em;color:#f4d88e;font-weight:bold;font-size:.82rem}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:normal}
h1{font-size:clamp(2.35rem,5.5vw,4.4rem);line-height:1.04;margin:.7rem 0 1.2rem}
h1 strong{display:block;color:#f4d88e;font-weight:normal}
.hero p{font-size:1.16rem}
.meta{display:flex;gap:1rem;flex-wrap:wrap;margin:2rem 0}
.meta-box{border-left:3px solid var(--gold);background:rgba(255,255,255,.08);padding:.4rem 1rem;min-width:180px}
.meta-box strong,.meta-box span{display:block}
.meta-box span{font-size:.9rem;color:#dfe8f0}
.button{display:inline-block;text-decoration:none;background:var(--gold);color:#1f2933;font-weight:bold;padding:.85rem 1.15rem;border-radius:4px;margin:.35rem .5rem .35rem 0}
.button.alt{background:transparent;color:white;border:1px solid rgba(255,255,255,.65)}
.photo-frame{margin:0;padding:.75rem;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);border-radius:5px}
.photo-frame img{width:100%;aspect-ratio:4/3;object-fit:cover}
.photo-frame figcaption{font-size:.84rem;color:#dfe8f0;margin-top:.5rem}
section{padding:4.7rem 0}
section:nth-of-type(even){background:var(--paper)}
.section-head{max-width:780px;margin-bottom:2.4rem}
.section-head small{text-transform:uppercase;letter-spacing:.12em;color:var(--gold);font-weight:bold}
h2{font-size:clamp(2rem,4vw,3rem);line-height:1.15;color:var(--navy);margin:.45rem 0 1rem}
h3{color:var(--blue);margin-top:0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;align-items:start}
.card{background:white;border:1px solid var(--line);padding:1.5rem;border-radius:4px;box-shadow:0 8px 22px rgba(30,47,62,.06)}
.gold-line{width:72px;height:4px;background:var(--gold);margin:0 0 1rem 0;border:0}
.gold-line.center{margin-left:auto;margin-right:auto}
.callout{background:white;border-left:5px solid var(--gold);padding:2rem;box-shadow:0 8px 22px rgba(30,47,62,.05)}
.big-photo{margin:0;background:white;border:1px solid var(--line);padding:.7rem}
.big-photo img{width:100%;aspect-ratio:3/2;object-fit:cover}
figcaption{font-size:.88rem;color:var(--muted);margin-top:.55rem}
table{border-collapse:collapse;width:100%;background:white}
th,td{border:1px solid var(--line);padding:.9rem 1rem;text-align:left;vertical-align:top}
th{background:var(--blue);color:white}
.person{text-align:center}
.person img{width:128px;height:128px;object-fit:cover;border-radius:50%;margin:0 auto 1rem;border:3px solid white;box-shadow:0 0 0 1px var(--line)}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.gallery figure{margin:0;background:white;border:1px solid var(--line);padding:.65rem}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}
.logos{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.logo-box{background:white;border:1px solid var(--line);min-height:120px;display:grid;place-items:center;padding:1rem}
.logo-box img{max-height:90px;width:auto}
.contacts{background:var(--navy)!important;color:white}
.contacts h2{color:white}
.contacts a{color:#f4d88e}
footer{background:#081b2d;color:#cbd6df;padding:1.4rem 0;font-size:.9rem}
footer .container{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
@media(max-width:850px){
  header{position:static}
  .header-row{display:block;padding:1rem 0}
  nav ul{justify-content:flex-start;margin-top:1rem}
  .hero-grid,.grid-3,.grid-2,.gallery,.logos{grid-template-columns:1fr}
  .hero{padding:4rem 0}
}


/* =========================================================
   PATRONAGES ON THE HOME PAGE
   Each box can later contain an official logo.
   ========================================================= */
.home-patronages{
  background:var(--white);
  border-bottom:1px solid var(--line);
  padding:1.7rem 0 1.9rem;
}
.home-patronages-title{
  margin:0 0 1rem;
  text-align:center;
  color:var(--navy);
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.35rem;
  font-weight:normal;
}
.home-patronages-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.home-patronage{
  min-height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.9rem;
  padding:1.35rem;
  border:1px solid var(--line);
  background:var(--paper);
  text-align:center;
}
.home-patronage img{
  width:112px;
  height:112px;
  object-fit:contain;
  flex:0 0 auto;
}
.home-patronage strong{
  display:block;
  color:var(--navy);
  line-height:1.28;
}
.home-patronage span{
  display:block;
  color:var(--muted);
  font-size:.88rem;
  margin-top:.25rem;
}
@media(max-width:850px){
  .home-patronages-grid{grid-template-columns:1fr}
}

/* =========================================================
   LOGHI UFFICIALI DEI PATROCINI — versione ben visibile
   ========================================================= */
.home-patronages{
  padding:2.2rem 0 2.5rem;
}
.home-patronages-title{
  margin-bottom:1.35rem;
  font-size:1.55rem;
}
.home-patronages-grid{
  gap:1.25rem;
}
.home-patronage{
  min-height:250px;
  flex-direction:column;
  justify-content:space-between;
  gap:1rem;
  padding:1.35rem 1.25rem 1.15rem;
  background:#ffffff;
  border:1px solid var(--line);
  border-top:4px solid var(--gold);
  box-shadow:0 8px 22px rgba(30,47,62,.07);
}
.home-patronage-logo{
  width:100%;
  min-height:155px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.home-patronage img{
  width:auto;
  height:auto;
  max-width:96%;
  max-height:150px;
  object-fit:contain;
  flex:none;
}
.home-patronage img.logo-lms{
  max-width:100%;
  max-height:118px;
}
.home-patronage img.logo-ambasciata{
  max-width:88%;
  max-height:160px;
}
.home-patronage img.logo-icms{
  max-width:88%;
  max-height:130px;
}
.home-patronage strong{
  font-size:1rem;
}
.home-patronage span{
  font-size:.9rem;
}
@media(max-width:850px){
  .home-patronage{min-height:225px}
  .home-patronage-logo{min-height:135px}
}

/* UNILU + ICMS + LMS + Ambassade: four-logo institutional strip */
.home-patronage img.logo-unilu{
  max-width:94%;
  max-height:170px;
}
@media(max-width:1050px){
  .home-patronages-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
  .home-patronages-grid{grid-template-columns:1fr;}
}
