/* =========================
   BASE
========================= */
:root{
  --bg: #F2EDE5;
  --text: #0E0E0E;
  --muted: #6B6B6B;
  --border: #E6E6E0;
  --accent: #1E3A8A;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 980px;
  --radius: 18px;
}

*{
  box-sizing: border-box;
}

html, body{
  min-height:100%;
  background:var(--bg);
}

body{
  margin:0;
  color:var(--text);
  font-family:var(--font-sans);
  line-height:1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{
  color:inherit;
  text-decoration:none;
  transition:color .2s ease;
}

a:hover{
  color:var(--accent);
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

/* mobile */

@media (max-width:768px){

  :root{
    --bg:#E6DAC7;
  }

  body{
    background:linear-gradient(#E6DAC7,#E3D6C2);
  }

  .container{
    width:calc(100% - 32px);
  }

}

/* miglior leggibilità dei testi */

main{
  max-width:70ch;
  margin:0 auto;
}

/* versione mobile */

@media (max-width:768px){

  :root{
    --bg:#E6DAC7;
  }

  body{
    background:linear-gradient(#E6DAC7, #E3D6C2);
  }

  .container{
    width:calc(100% - 32px);
  }

}
/* versione mobile */

@media (max-width: 768px) {

  :root{
    --bg: #E6DAC7;
  }

  body{
    background: linear-gradient(#E6DAC7, #E3D6C2);
  }

}
/* =========================
   HEADER
========================= */

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:64px;

  display:flex;
  align-items:center;
  justify-content:flex-end;

  padding:0 20px;
  z-index:50;

  background:linear-gradient(
    to bottom,
    rgba(250,250,247,.92),
    rgba(250,250,247,.55),
    rgba(250,250,247,0)
  );

  backdrop-filter:blur(6px);
}

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.menu-trigger{
  font-size:14px;
  letter-spacing:.10em;
  text-transform:uppercase;
  border-bottom:1px solid transparent;
  padding:8px 10px;
}

.menu-trigger:hover{
  border-bottom-color:var(--accent);
}

.lang-link{
  font-size:13px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--muted);
  padding:8px 6px;
}

.lang-link:hover{
  color:#000;
  font-weight:500;
}

/* =========================
   PAGE STRUCTURE
========================= */

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding-top:64px;
}

.site-footer{
  margin-top:auto;
}

/* =========================
   HERO HOME
========================= */

.hero{
  min-height:0;
  padding:44px 0 6px;
  display:grid;
  place-items:center;
}

.hero__inner{
  text-align:center;
  width:min(920px, calc(100% - 40px));
}

.hero__title{
  font-family:var(--font-serif);
  font-weight:600;
  letter-spacing:.10em;
  text-transform:uppercase;
  margin:0 0 10px;
  font-size:clamp(20px,2.4vw,34px);
}

.hero__subtitles{
  color:var(--muted);
  font-size:13.5px;
}

.hero__subtitles p{
  margin:3px 0;
}

/* =========================
   INTRO
========================= */

.intro{
  padding:10px 0 18px;
}

.section-title{
  font-family:var(--font-serif);
  font-size:22px;
  margin:0 0 8px;
}

.intro .section-title{
  text-align:center;
  max-width:66ch;
  margin:0 auto 10px;
}

.cta-link{
  color:var(--accent);
  font-weight:500;
}

.cta-link:hover{
  text-decoration:underline;
}

/* =========================
   SYMBOL IMAGE
========================= */

.symbol-block{
  padding:48px 0 18px;
  text-align:center;
}

.symbol-block img{
  width:240px;
  max-width:55vw;
  height:auto;
  margin:0 auto;
  display:block;
  filter:grayscale(100%) contrast(1.05);
}

/* =========================
   FOOTER
========================= */

.site-footer{
  border-top:1px solid var(--border);
  padding:10px 0;
}

.footer__inner{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;

  display:flex;
  justify-content:center;
  align-items:center;

  color:var(--muted);
  font-size:14px;
  line-height:1.2;
}
/* =========================
   HERO PAGINE INTERNE
========================= */

.hero-page{
  padding:2px 0 4px 0;
}
.hero-page h1{
  margin-bottom:0;
}

.hero-page h1{
  font-family:var(--font-serif);
  margin:0;
  text-align:center;
  font-size:clamp(24px,4.5vw,34px);
  font-weight:500;
  letter-spacing:.03em;
  line-height:1.2;
}
/* =========================
   MENU OVERLAY
========================= */

.menu-overlay{
  position:fixed;
  inset:0;
  z-index:9999;

  padding:clamp(16px,3vw,34px);

  opacity:0;
  visibility:hidden;
  pointer-events:none;

  background:rgba(245,242,236,.96);

  transition:opacity .18s ease, visibility .18s ease;
}

.menu-overlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.menu-overlay__inner{
  max-width:980px;
  margin:0 auto;
  min-height:100%;

  display:grid;
  grid-template-rows:auto 1fr;
  gap:22px;
}

.menu-close{
  justify-self:end;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(0,0,0,.03);
  border-radius:999px;
  padding:.55rem .85rem;
  cursor:pointer;
}

.menu-nav{
  margin-top:8vh;
  display:grid;
  gap:1rem;
  justify-items:center;
  text-align:center;
}

.menu-link{
  font-weight:500;
  font-size:clamp(17px,2.3vw,28px);
  opacity:.9;
  border-bottom:1px solid transparent;
}

.menu-link:hover{
  border-bottom-color:var(--accent);
  color:var(--accent);
}

.menu-link.is-active{
  border-bottom-color:var(--accent);
  color:var(--accent);
}

/* =========================
   OPERE GRID
========================= */

.opere-list{
  list-style:none;
  padding:0;
  margin:1.2rem 0 2.4rem;

  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
  gap:12px;
}

.gallery-item{
  margin-bottom:6px;
}

.opera-card__link{
  display:block;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.7);

  transition:transform .15s ease;
}

.opera-card__link:hover{
  transform:translateY(-2px);
}

.opera-card__img{
  width:100%;
  height:auto;
  display:block;
}

.opera-card__body{
  padding:10px 12px 12px;
}

.opera-card__author{
  font-weight:600;
}

.opera-card__title{
  opacity:.8;
  font-size:.95rem;
  margin-top:4px;
}

/* =========================
   GALLERY
========================= */

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.gallery-item img{
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  border-radius:4px;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}

.lightbox.is-open{
  display:block;
}

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.92);
}

.lightbox-dialog{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.lightbox-img{
  max-width:92vw;
  max-height:86vh;
}

.lightbox-close{
  position:absolute;
  top:-12px;
  right:-12px;
  width:44px;
  height:44px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:768px){

  .site-header{
    height:56px;
  }

  .page{
    padding-top:56px;
  }

  .hero-page{
    padding:2px 0 12px 0;
    margin-top:0;
  }

  .gallery-grid{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }

}

@media (max-width:520px){

  .footer__inner{
    flex-direction:column;
    align-items:flex-start;
  }

}
/* =========================================
   FIRMATARI — CARD AUTORE
========================================= */

.author-card{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:24px;
  align-items:start;
  margin-bottom:28px;
}

.author-photo{
  max-width:180px;
  width:100%;
  height:auto;
  border-radius:4px;
}

@media (max-width:768px){
  .author-card{
    grid-template-columns:1fr;
  }

  .author-photo{
    max-width:150px;
  }
}

/* =========================================
   FONDATORI
========================================= */

.founders-grid{
  list-style:none;
  padding:0;
  margin:22px 0 34px;

  max-width:1100px;
  width:100%;

  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.founders-grid li{
  margin:0;
}

.founders-grid a{
  display:flex;
  align-items:center;
  gap:14px;

  text-decoration:none;
  color:inherit;

  padding:12px;

  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;

  background:rgba(255,255,255,.55);
}

.founders-grid a:hover{
  border-color:rgba(0,0,0,.16);
}

.founders-grid img{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
}

/* =========================================
   FIRMATARI ELENCO
========================================= */

.signers-grid{
  list-style:none;
  padding:0;
  margin:22px 0 40px;

  max-width:1100px;
  width:100%;

  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px 26px;
}

.signers-grid li{
  margin:0;
  padding:12px 0;

  border-bottom:1px solid rgba(0,0,0,.08);
}

.signatory-text{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.signatory-name{
  font-size:1rem;
  font-weight:600;
  letter-spacing:.01em;
}

.signatory-place{
  font-size:.88rem;
  opacity:.65;
  margin-top:4px;
}

/* Responsive */

@media (max-width:980px){

  .founders-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .signers-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

@media (max-width:640px){

  .founders-grid{
    grid-template-columns:1fr;
  }

  .signers-grid{
    grid-template-columns:1fr;
  }

}

/* =========================================
   OPERE NELLA PAGINA FIRMATARIO
========================================= */

.page.firmatario .gallery-grid{
  grid-template-columns:repeat(2,1fr);
}
@media (max-width:600px){
  .page.firmatario .gallery-grid{
    grid-template-columns:1fr;
  }
}

.gallery-item figcaption{
  margin-top:12px;
  font-size:.95rem;
  line-height:1.35;
  opacity:.85;
}

.gallery-item img{
  display:block;
  width:100%;
  height:auto;
  transition:opacity .2s ease;
}

.gallery-item a:hover img{
  opacity:.9;
}

/* Link sempre blu */

.prose a,
.page-body a {
  color: #1a5fb4;
  text-decoration: none;
}

.prose a:visited,
.page-body a:visited {
  color: #1a5fb4;
}

.prose a:hover,
.page-body a:hover {
  text-decoration: underline;
}
/* -----------------------------
   Manifesto layout editoriale
----------------------------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 18px;
}

.prose h2 {
  margin-top: 60px;
  font-family: "Playfair Display", serif;
}

.prose h3 {
  margin-top: 40px;
  font-family: "Playfair Display", serif;
}

.prose ul {
  margin-top: 20px;
  margin-bottom: 30px;
  padding-left: 20px;
}

.prose details {
  margin-top: 40px;
}

.prose details h2 {
  margin-top: 50px;
}
/* =========================
   SPAZI PAGINE FIRMATARI
========================= */

.author-card{
  margin-bottom:18px;
}

.manifesto-actions{
  margin:10px 0;
}

.manifesto-actions + h2{
  margin-top:16px;
}

/* =========================
   LINK BLU SITO
========================= */

.prose a,
.page-body a{
  color:#1E3A8A;
  text-decoration:none;
}

.prose a:visited,
.page-body a:visited{
  color:#1E3A8A;
}

.prose a:hover,
.page-body a:hover{
  text-decoration:underline;
}
/* Migliora ritmo pagine firmatari */

.author-card{
  margin-bottom:16px;
}

.prose h2{
  margin-top:28px;
}
.prose h2 + .gallery-grid{
  margin-top:12px;
}
@media (max-width: 768px) {
  :root{
    --bg: #E6DAC7;
  }
}