/* =========================================================================
   Fondazione Polo Marconi ETS — BOZZA nuovo sito
   Riferimento stilistico: gallerieditalia.com (serif sottile + sans, bianco/nero)
   Font: Newsreader (alternativa gratuita a Canela Thin) + Inter
   ========================================================================= */

:root {
  --ink: #111;
  --ink-2: #323232;
  --muted: #6f6f6f;
  --line: #e0e0e0;
  --paper: #fff;
  --soft: #f6f4ef;
  --blu: #027bbe;          /* blu del logo */
  --blu-scuro: #0b2d4a;
  --notte: #10283b;        /* blu notte: footer e fascia in alto */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', Arial, Helvetica, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 150px);   /* spazio verticale tra sezioni */
  --head-h: 74px;
  --top-h: 32px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; }

/* ---------- Tipografia ---------------------------------------------------- */
.display, h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 250;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  margin: 0;
}
h1, .h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.04; }
h2, .h2 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.08; }
h3, .h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.18; font-weight: 300; }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 250; }

.eyebrow {
  display: block;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow--muted { color: var(--muted); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.15rem); line-height: 1.7; }
.statement {
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
}
.small { font-size: 14px; color: var(--muted); }

/* ---------- Pulsanti e link ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 12px 32px;
  font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.more {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s, gap .25s var(--ease);
}
.more:hover { border-color: currentColor; gap: 14px; }
.arrow { width: 16px; height: 10px; flex: none; color: var(--notte); }
/* su fondo scuro le frecce restano nel colore del testo */
.section--dark .arrow, .site-footer .arrow, .lightbox .arrow { color: inherit; }

/* ---------- Header -------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .35s var(--ease); }
.topbar { background: var(--notte); color: #fff; font: 400 11.5px/var(--top-h) var(--sans); letter-spacing: .02em; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__claim { color: #bbb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a { text-decoration: none; opacity: .9; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; }
.topbar__sep { width: 1px; height: 12px; background: #666; }
.topbar__lang { font-weight: 600; }

.mainbar { background: var(--paper); border-bottom: 1px solid var(--line); transition: background .35s var(--ease), border-color .35s; }
.mainbar__in { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 24px; }
.brand { position: relative; display: block; flex: none; }
.brand__logo { width: clamp(170px, 18vw, 210px); height: auto; transition: opacity .3s; }
.brand__logo--bianco { position: absolute; inset: 0; opacity: 0; }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font: 500 13px/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .25s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: currentColor; }
.nav__mobile-extra { display: none; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.mainbar .burger { color: var(--notte); }
.has-hero .site-header:not(.is-scrolled) .burger { color: #fff; }
.menu-open .site-header .burger { color: var(--notte) !important; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* header trasparente sopra l'immagine di apertura */
.has-hero .site-header:not(.is-scrolled) .mainbar { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.has-hero .site-header:not(.is-scrolled) .brand__logo--blu { opacity: 0; }
.has-hero .site-header:not(.is-scrolled) .brand__logo--bianco { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .topbar { background: rgba(16,40,59,.55); }
.site-header.is-scrolled .topbar { display: none; }
.site-header.is-hidden { transform: translateY(-100%); }

body:not(.has-hero) main { padding-top: calc(var(--head-h) + var(--top-h)); }

/* ---------- Hero (home) --------------------------------------------------- */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; color: #fff; overflow: hidden; background: var(--ink); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease); }
.hero__media, .hero__media img, .hero__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.5) 100%); }
.hero__content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--head-h) + var(--top-h)) var(--gutter) 60px;
}
.hero__content .eyebrow { color: rgba(255,255,255,.85); }
.hero__content h1 { max-width: 19ch; }
.hero__content .btn { margin-top: 44px; }
.hero__controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 18px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 20px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(255,255,255,.4); }
.hero__dots button[aria-current="true"]::before { background: #fff; }
.hero__pause { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(16,40,59,.55); cursor: pointer; display: grid; place-items: center; }
.hero__pause svg { width: 12px; height: 12px; fill: #fff; }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
.hero.is-paused .hero__pause .i-pause { display: none; }

/* ---------- Testata pagine interne --------------------------------------- */
.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: clamp(32px, 5vw, 64px); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .page-head__grid { grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: end; }
  .page-head__grid .lead { padding-bottom: .6em; }
}
/* titolo sopra e testo sotto, su un'unica colonna larga */
.page-head__grid.page-head__grid--unica { grid-template-columns: 1fr; gap: clamp(28px, 3.5vw, 44px); }
.page-head__grid--unica > :not(h1) { max-width: 980px; }

.page-cover { position: relative; height: clamp(300px, 52vw, 640px); overflow: hidden; }
.page-cover img, .page-cover .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sezioni ------------------------------------------------------- */
.section { padding: var(--sec) 0; }
.section--tight { padding: calc(var(--sec) * .6) 0; }
.section--soft { background: var(--soft); }
/* prima sezione di una pagina senza testata: stesso spazio in alto della testata */
.section--prima { padding-top: clamp(56px, 8vw, 110px); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow--muted, .section--dark .small { color: #a9a9a9; }
/* due sezioni bianche consecutive non raddoppiano lo spazio */
.section:not(.section--soft):not(.section--dark) + .section:not(.section--soft):not(.section--dark) { padding-top: 0; }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--wide-left { grid-template-columns: 1.15fr 1fr; }
  .split--title { grid-template-columns: 5fr 6fr; }
  .split__sticky { position: sticky; top: calc(var(--head-h) + 40px); align-self: start; }
}
.split .btn, .stack .btn { margin-top: 20px; }

/* titolo sopra e testo sotto, su un'unica colonna */
.colonna-unica { display: grid; gap: clamp(28px, 3.5vw, 44px); }
.colonna-unica > :last-child { max-width: 980px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 60px); }

/* intro grande della home */
.intro { max-width: 980px; }
.intro .statement + .more { margin-top: 36px; }
.intro--logo { display: grid; gap: clamp(32px, 4vw, 48px); }
.intro__logo { margin: 0; width: clamp(200px, 22vw, 280px); }
.intro__logo img { width: 100%; height: auto; }

/* ---------- Aree di intervento (griglia a filetti) ------------------------ */
.areas { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; row-gap: 10px;
  padding: 30px 0 26px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .3s var(--ease);
}
.area .icon { width: 40px; height: 40px; grid-row: span 2; color: var(--notte); }
.area__title { font: 300 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.01em; }
.area p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.area .more { grid-column: 2; justify-self: end; margin-top: 8px; }
.area:hover .more { border-color: currentColor; gap: 14px; }
@media (min-width: 700px) { .area { padding-left: 14px; padding-right: 14px; } .area:hover { background: var(--soft); } }

/* ---------- Carosello card ------------------------------------------------ */
.carousel-nav { display: flex; gap: 6px; }
.carousel-nav button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-nav button:disabled { opacity: .25; cursor: default; }
.carousel-nav .arrow { width: 26px; height: 14px; }
.carousel-nav .prev .arrow { transform: scaleX(-1); }

.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  /* le card partono allineate al contenuto e scorrono fino al bordo dello schermo */
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  padding: 0 var(--edge) 8px; scroll-padding: 0 var(--edge);
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; text-decoration: none; display: block; }
.card__media { position: relative; aspect-ratio: 446 / 600; overflow: hidden; background: #ddd; }
.card__media img, .card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.card:hover .card__media img, a.card:hover .card__media .ph { transform: scale(1.035); }
.badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: #fff; color: var(--ink); border-radius: 30px; padding: 6px 12px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
}
.badge--dark { background: var(--ink); color: #fff; }
.card__meta { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.card__meta strong { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--ink); }
.card__meta strong::after { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--ink); margin: 0 10px -1px 12px; }
.card__title { font: 300 1.45rem/1.25 var(--serif); margin: 8px 0 0; letter-spacing: -.005em; }
a.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- Blocchi progetto (immagine + testo) --------------------------- */
.feature { display: grid; gap: 36px; align-items: center; }
.feature + .feature { margin-top: var(--sec); }
.feature__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.feature__media img, .feature__media .ph { width: 100%; height: 100%; object-fit: cover; }
.feature__media--tall { aspect-ratio: 4 / 5; }
.feature__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 18px 0 24px; }
.feature__meta span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; background: var(--line); margin-right: 18px; vertical-align: -1px; }
.feature h2, .feature h3 { margin-bottom: 4px; }
.feature .body { margin-top: 24px; }
.feature .btn { margin-top: 16px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature--reverse .feature__media { order: 2; }
}

/* ---------- Attività culturali: griglia a due colonne -------------------- */
.section--attaccata { padding-top: 0; }   /* subito dopo la testata della pagina */
.wrap--largo { max-width: calc(1400px + 2 * var(--gutter)); }   /* griglia più larga del resto della pagina */
.griglia { display: grid; gap: 56px; }
.scheda__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.scheda__media img, .scheda__media .ph { width: 100%; height: 100%; object-fit: cover; }
.scheda__meta { margin: 30px 0 0; font-size: 13px; color: var(--ink-2); }
.scheda__meta strong { display: block; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--ink); }
.scheda__titolo { margin-top: 10px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 300; line-height: 1.2; }
.scheda--larga { grid-column: 1 / -1; }   /* scheda su tutta la larghezza della griglia */
.scheda--larga .scheda__media { aspect-ratio: 16 / 9; }
.scheda__titolo a { text-decoration: none; }
.scheda__titolo a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
a.scheda__media { display: block; }
a.scheda__media img { transition: transform .8s var(--ease); }
a.scheda__media:hover img { transform: scale(1.03); }
.scheda__more { margin-top: 18px; }
.scheda__testo { margin: 16px 0 0; color: var(--ink-2); }
.scheda__btn { margin-top: 24px; }
.scheda--larga .scheda__meta { font-size: 15px; }
.scheda--larga .scheda__meta strong { font-size: 13px; }
.scheda--larga .scheda__titolo { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
@media (min-width: 700px) { .griglia { grid-template-columns: 1fr 1fr; gap: clamp(56px, 6vw, 88px) clamp(24px, 3vw, 40px); } }

/* ---------- Progetti su due colonne: titolo, immagine, testo --------------- */
.colonne { display: grid; gap: 64px; }
.colonne__voce { display: grid; gap: 24px; align-content: start; }
.colonne__voce h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; }
.colonne__testo { margin: 0; color: var(--ink-2); }
.colonne__testo p { margin: 0; }
.colonne__testo .more { margin-top: 20px; }
.colonne__voce h2 a { text-decoration: none; }
.colonne__voce h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (min-width: 900px) {
  .colonne { grid-template-columns: 1fr 1fr; gap: 0 clamp(48px, 6vw, 80px); }
  /* le immagini restano allineate anche con titoli di lunghezza diversa */
  .colonne__voce { grid-row: span 3; grid-template-rows: subgrid; row-gap: 28px; }
}

/* ---------- Figure con didascalia ---------------------------------------- */
.figure { margin: 0; }
.figure figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.figure--ampia { margin-top: clamp(48px, 6vw, 80px); }
.figure--ampia img { width: 100%; }
.figure--dark { margin-top: 40px; max-width: 360px; }
.figure--dark img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.figure--dark figcaption { color: #a9a9a9; }
.figure--inset .feature__media { overflow: visible; }
.figure--inset .feature__media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.figure--inset .inset {
  position: absolute; right: -14px; bottom: -28px; width: 30%; aspect-ratio: 3 / 4; height: auto;
  object-fit: cover; border: 6px solid var(--paper); box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.figure--inset figcaption { margin-top: 40px; }
@media (min-width: 900px) { .feature--reverse > .figure { order: 2; } }
@media (max-width: 899px) { .figure--inset .inset { right: 10px; } }

/* ---------- Fondatori ----------------------------------------------------- */
.founders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.founders li { padding: 20px 0; border-bottom: 1px solid var(--line); font: 300 1.3rem/1.3 var(--serif); }

/* Pagina 404: sezioni del sito */
.elenco-404 { list-style: none; margin: 8px 0 36px; padding: 0; border-top: 1px solid var(--line); max-width: 560px; }
.elenco-404 li { border-bottom: 1px solid var(--line); }
.elenco-404 a { display: block; padding: 14px 0; font: 300 1.3rem/1.3 var(--serif); text-decoration: none; color: inherit; }
.elenco-404 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.founders li small { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (min-width: 700px) { .founders { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1000px) { .founders { grid-template-columns: repeat(3, 1fr); } .split .founders { grid-template-columns: 1fr 1fr; } }
.founders--dark, .founders--dark li { border-color: #333; }
.founders--dark li small { color: #9a9a9a; }

/* ---------- Dati in evidenza ---------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.2); margin-top: 56px; }
.fact { padding: 28px 24px 0 0; }
.fact__n { font: 200 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); display: block; margin-bottom: 10px; }
.fact__l { font-size: 13px; color: #bdbdbd; }

/* ---------- Galleria ------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(120px, 15vw, 210px); grid-auto-flow: dense; gap: 10px; margin-top: 48px; }
.gallery a { position: relative; display: block; overflow: hidden; }
.gallery a.tall { grid-row: span 2; }
.gallery a.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
/* half: foto orizzontale, affiancata su mobile e larga due colonne su schermo grande */
.gallery a.half img { object-position: 50% 30%; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery a.half { grid-column: span 2; } }
/* gallery con foto verticali: le verticali affiancate, l'orizzontale (panorama) su tutta la larghezza */
.gallery.gallery--verticali { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
.gallery--verticali a { aspect-ratio: 9 / 16; }
.gallery--verticali a.panorama { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
/* Firma in fondo a un testo (La Fondazione) */
.firma { margin-top: 2em; font: 300 1.35rem/1.3 var(--serif); }
.firma span { display: block; margin-bottom: 4px; font: 500 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Pagina della scheda (schede gestite in /admin) ---------------- */
a.scheda__media { display: block; }
.articolo__foto { aspect-ratio: 3 / 2; overflow: hidden; background: #ddd; }
.articolo__foto img { width: 100%; height: 100%; object-fit: cover; }
.articolo { max-width: 760px; margin: clamp(40px, 5vw, 72px) auto 0; }
.articolo p { font-size: clamp(1.02rem, 1.3vw, 1.1rem); line-height: 1.75; color: var(--ink-2); }
.articolo h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.2; font-weight: 300; margin: 1.8em 0 .6em; }
.articolo h2:first-child { margin-top: 0; }
.articolo blockquote { margin: 1.8em 0; padding-left: clamp(18px, 3vw, 32px); border-left: 1px solid var(--ink); }
.articolo blockquote p { font: 300 clamp(1.3rem, 2vw, 1.65rem)/1.4 var(--serif); color: var(--ink); margin: 0; }
.articolo blockquote footer { margin-top: 12px; font-size: 13px; color: var(--muted); }
.articolo a { text-underline-offset: 3px; }
.articolo ul { margin: 0 0 1em; padding-left: 1.2em; font-size: clamp(1.02rem, 1.3vw, 1.1rem); line-height: 1.75; color: var(--ink-2); }
.articolo li + li { margin-top: .4em; }
/* Testi legali (privacy.php): elenchi e tabella dei cookie */
.testo-legale h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6em 0 .4em; }
.testo-legale ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); line-height: 1.7; }
.testo-legale li + li { margin-top: .3em; }
.testo-legale strong { color: var(--ink); font-weight: 600; }
.testo-legale .tabella { overflow-x: auto; margin: 1em 0 1.4em; }
.testo-legale table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.testo-legale th, .testo-legale td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line, #ddd); }
.testo-legale th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.avviso-anteprima { margin: 0; padding: 10px 14px; background: #fff4d6; border: 1px solid #e8cf86; font-size: 14px; }

.torna { margin-top: clamp(40px, 5vw, 64px); text-align: center; }   /* bottone di ritorno in fondo alle gallery */
.btn--indietro .arrow { transform: scaleX(-1); }
.btn:hover .arrow { color: inherit; }   /* sul fondo scuro del passaggio del mouse la freccia diventa bianca */

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.94); display: none; place-items: center; padding: 60px 16px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; width: 54px; height: 54px; display: grid; place-items: center; }
.lightbox .lb-close { top: 10px; right: 10px; font-size: 30px; font-weight: 200; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev .arrow { transform: scaleX(-1); }
.lightbox .arrow { width: 28px; height: 16px; }

/* ---------- Liste documenti / organi -------------------------------------- */
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doclist li { border-bottom: 1px solid var(--line); }
.doclist a, .doclist__voce { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; text-decoration: none; font: 300 1.35rem/1.3 var(--serif); }
.doclist a span, .doclist__voce span { font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.doclist a:hover { background: var(--soft); }

.organi { display: grid; gap: 0; border-top: 1px solid var(--line); }
.organo { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.organo dt { font: 600 11px/1.5 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.organo dd { margin: 0; font: 300 1.3rem/1.4 var(--serif); }
@media (min-width: 700px) { .organo { grid-template-columns: 220px 1fr; align-items: baseline; } }

/* ---------- Contatti e modulo --------------------------------------------- */
.contact-box p { margin-bottom: .4em; }
.contact-box .label { display: block; font: 600 11px/1.4 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 28px 0 6px; }
.contact-box .big { font: 300 1.5rem/1.35 var(--serif); }
.contact-box a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.form { display: grid; gap: 22px; }
.form .row2 { display: grid; gap: 22px; }
@media (min-width: 700px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .03em; margin-bottom: 8px; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid #bcbcbc; background: transparent; border-radius: 0;
  font: 300 16px/1.5 var(--sans); padding: 10px 0; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.check { display: flex; gap: 12px; font-size: 13px; color: var(--ink-2); align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--ink); }
.form-note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--blu); padding-left: 14px; }
.form-note--ok { color: var(--ink); }
.form-note--errore { color: #a4262c; border-left-color: #a4262c; }
.form-privacy { font-size: 13px; color: var(--ink-2); margin: 0; }
.campo-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Segnaposto immagini (onde radio) ------------------------------ */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 220px; overflow: hidden;
  --t: var(--blu-scuro);
  background:
    repeating-radial-gradient(circle at 18% 112%, rgba(255,255,255,.13) 0 1px, transparent 1.5px 30px),
    radial-gradient(circle at 18% 112%, rgba(255,255,255,.18), transparent 60%),
    var(--t);
}
.ph--blu { --t: #0b2d4a; }
.ph--vino { --t: #4a1f2a; }
.ph--oliva { --t: #3a4426; }
.ph--ocra { --t: #6b4e22; }
.ph--ardesia { --t: #2b3238; }
.ph__label {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  font: 500 10.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.ph--hero .ph__label { display: none; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--notte); color: #fff; padding: clamp(60px, 8vw, 100px) 0 40px; font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer__brand img { width: 260px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer__nav a { font: 500 12.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; padding: 48px 0; color: #c9c9c9; }
.footer__grid a { color: #fff; }
.footer__name { color: #fff; font: 300 1.4rem/1.3 var(--serif); margin-bottom: 14px; }
.footer__label { font: 600 11px/1.4 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #8d8d8d; margin: 0 0 6px; }
.footer__label:not(:first-child) { margin-top: 22px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr; gap: 80px; } }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; color: #8d8d8d; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a { text-decoration: none; color: #c9c9c9; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__legal p { margin: 0; }

/* etichetta "bozza" */
.bozza-tag {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  background: var(--blu); color: #fff; padding: 7px 12px; border-radius: 30px;
  font: 600 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

/* ---------- Comparsa allo scorrimento ------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile -------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --head-h: 64px; }
  .topbar { display: none; }
  body:not(.has-hero) main { padding-top: var(--head-h); }
  .hero__content { padding-top: var(--head-h); }
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--paper); color: var(--ink);
    display: flex; flex-direction: column; justify-content: center; gap: 48px;
    padding: var(--head-h) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav ul a { font: 250 clamp(2rem, 8vw, 2.8rem)/1.25 var(--serif); text-transform: none; letter-spacing: -.01em; border: 0; }
  .nav ul a[aria-current="page"] { font-style: italic; }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: 10px; }
  .nav__mobile-extra a { font-size: 14px; text-transform: none; letter-spacing: 0; border: 0; color: var(--muted); }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .menu-open { overflow: hidden; }
  .menu-open .site-header .mainbar { background: var(--paper) !important; color: var(--ink) !important; }
  .menu-open .site-header .brand__logo--blu { opacity: 1 !important; }
  .menu-open .site-header .brand__logo--bianco { opacity: 0 !important; }
  .brand { z-index: 2; }
  .hero__controls { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
