@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #14120F;
  --bg-raised: #1C1914;
  --bg-card: #211D17;
  --line: #332E25;
  --ink: #F4EFE4;
  --ink-dim: #B8AF9C;
  --ink-faint: #9C9280;
  --amber: #C98A3E;
  --amber-soft: rgba(201,138,62,0.14);
  --clay: #8B4A2B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.1; color: var(--ink); }
.eyebrow { font-family: 'Instrument Sans', sans-serif; font-size: 0.82rem; color: var(--amber); font-weight: 500; }

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,18,15,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav.container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; text-decoration: none; }
.brand img { height: 40px; width: 40px; border-radius: 50%; }
.brand span { color: var(--amber); }
.nav-links { display: flex; gap: clamp(12px, 2vw, 26px); font-size: 0.92rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-dim); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--amber); }
.lang-switch { display: flex; gap: 6px; font-size: 0.78rem; }
.lang-switch a, .lang-switch span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-faint); text-decoration: none; }
.lang-switch a.active, .lang-switch span.active { color: var(--bg); background: var(--amber); border-color: var(--amber); font-weight: 500; }

/* ---------- MOBILE MENU ---------- */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); display: block; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 16px clamp(20px, 5vw, 56px); color: var(--ink-dim); text-decoration: none; border-top: 1px solid var(--line); font-size: 1.02rem; }
.mobile-menu a.active { color: var(--amber); }
.mobile-lang-switch { display: flex; gap: 8px; padding: 16px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); }
.mobile-lang-switch a, .mobile-lang-switch span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 3px; font-size: 0.86rem; color: var(--ink-faint); text-decoration: none; }
.mobile-lang-switch a.active, .mobile-lang-switch span.active { background: var(--amber); color: var(--bg); border-color: var(--amber); }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.55) 55%, rgba(20,18,15,0.96) 100%), url('images/abisso-corde.jpg') center 30% / cover no-repeat;
}
.hero-inner { padding: 64px 0 72px; max-width: 720px; animation: rise 900ms ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); max-width: 12ch; }
.hero p { margin-top: 22px; font-size: 1.12rem; color: var(--ink-dim); max-width: 52ch; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn { padding: 13px 28px; border-radius: 3px; font-size: 0.94rem; font-weight: 500; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--amber); color: #17140F; }
.btn-secondary { border: 1px solid #514738; color: var(--ink); }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header { position: relative; padding: 76px 0 60px; background-size: cover; background-position: center; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,0.55), rgba(20,18,15,0.97)); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-header p { color: var(--ink-dim); margin-top: 14px; max-width: 62ch; font-size: 1.02rem; line-height: 1.6; }

/* ---------- SECTION SHELL ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 8px; }
.section-head p { color: var(--ink-dim); margin-top: 14px; font-size: 1.03rem; line-height: 1.6; }

/* ---------- HOME: NAV CARDS ---------- */
.navcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.navcard { background: var(--bg); padding: 34px 28px; text-decoration: none; display: block; transition: background .15s; }
.navcard:hover { background: var(--bg-raised); }
.navcard .eyebrow { display: block; margin-bottom: 10px; }
.navcard h3 { font-size: 1.2rem; margin-bottom: 10px; }
.navcard p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }
.navcard .go { display: inline-block; margin-top: 16px; color: var(--amber); font-size: 0.88rem; }

/* ---------- CHI SIAMO ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--ink-dim); font-size: 1.03rem; line-height: 1.68; margin-bottom: 18px; }
.about-figure img { border-radius: 3px; width: 100%; height: 480px; object-fit: cover; }
.about-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-faint); }
.fact-row { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.fact-row div span { display: block; font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--amber); }
.fact-row div small { color: var(--ink-faint); font-size: 0.8rem; }

/* ---------- ATTIVITA ---------- */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.activity-card { background: var(--bg); padding: 32px 28px; }
.activity-card h3 { font-size: 1.08rem; font-weight: 600; border-top: 2px solid var(--amber); padding-top: 14px; margin-bottom: 10px; }
.activity-card p { color: var(--ink-dim); font-size: 0.94rem; line-height: 1.55; }

/* ---------- CAVITA ---------- */
.cavity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cavity-col { background: var(--bg-raised); padding: 40px clamp(24px, 4vw, 48px); }
.cavity-col h3 { font-size: 1.3rem; margin-bottom: 6px; }
.cavity-col .tag { font-size: 0.8rem; color: var(--amber); }
.cavity-col ul { list-style: none; margin-top: 22px; }
.cavity-col li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 0.98rem; }
.cavity-col li strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 3px; }
.cavity-col img { width: 100%; height: 200px; object-fit: cover; border-radius: 3px; margin-top: 26px; }

/* ---------- CASI DI STUDIO ---------- */
.casestudy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.casestudy-card { background: var(--bg); }
.casestudy-card img { width: 100%; height: 170px; object-fit: cover; }
.cs-body { padding: 18px 20px 24px; }
.cs-loc { font-size: 0.76rem; color: var(--amber); margin-bottom: 5px; }
.casestudy-card h4 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.02rem; margin-bottom: 7px; }
.casestudy-card p { color: var(--ink-dim); font-size: 0.86rem; line-height: 1.5; }

/* ---------- MINI EVENTI (con foto) ---------- */
.mini-event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 4px; }
.mini-event-card { background: var(--bg); }
.mini-event-card img { width: 100%; height: 190px; object-fit: cover; }
.mev-body { padding: 22px 26px 28px; }
.mev-date { font-family: 'Fraunces', serif; color: var(--amber); font-size: 0.92rem; margin-bottom: 6px; }
.mini-event-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.mini-event-card p { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; }
.mini-event-card .event-partners { margin-top: 10px; }

/* ---------- PARTNER ---------- */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 56px; }
.partner-card { background: var(--bg-raised); padding: 30px 32px; }
.partner-card .tag { font-size: 0.78rem; color: var(--amber); }
.partner-card h3 { font-size: 1.12rem; margin: 8px 0 10px; }
.partner-card p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }

/* ---------- CONVEGNI ---------- */
.event-card { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.event-card:last-child { border-bottom: 1px solid var(--line); }
.event-card img { width: 100%; height: 210px; object-fit: cover; border-radius: 3px; }
.event-year { font-family: 'Fraunces', serif; color: var(--amber); font-size: 1.05rem; margin-bottom: 6px; }
.event-card h3 { font-size: 1.35rem; max-width: 26ch; margin-bottom: 12px; }
.event-card p { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.65; }
.event-partners { margin-top: 14px; font-size: 0.84rem; color: var(--ink-faint); }

/* ---------- GALLERIA ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; gap: 8px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.g-w2 { grid-column: span 2; } .g-w3 { grid-column: span 3; }
.g-h2 { grid-row: span 2; }

/* ---------- VIDEO ---------- */
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 3px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- VIDEO FACADE (click-to-load) ---------- */
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; background: #000 center/cover no-repeat; cursor: pointer; border: none; display: block; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.video-facade .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-facade .play-btn span { width: 74px; height: 74px; border-radius: 50%; background: var(--amber); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.video-facade:hover .play-btn span { transform: scale(1.08); }
.video-facade .play-btn svg { width: 26px; height: 26px; fill: #17140F; margin-left: 4px; }
.video-facade .facade-note { position: absolute; bottom: 14px; left: 14px; right: 14px; font-size: 0.78rem; color: var(--ink-dim); background: rgba(20,18,15,0.7); padding: 6px 10px; border-radius: 3px; }

/* ---------- COOKIE BANNER ---------- */
#cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 640px; margin: 0 auto; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.4); display: none; }
#cookie-banner.show { display: block; }
#cookie-banner p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.55; margin-bottom: 14px; }
#cookie-banner a { color: var(--amber); text-decoration: underline; }
#cookie-banner .btn { padding: 9px 20px; font-size: 0.86rem; }

/* ---------- LIGHTBOX ---------- */
.gallery-grid img, .casestudy-card img, .event-card img, .mini-event-card img, .cavity-col img, .about-figure img { cursor: zoom-in; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(10,9,7,0.92); z-index: 300; display: none; align-items: center; justify-content: center; padding: 48px; cursor: zoom-out; }
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: default; }
.lightbox-close { position: absolute; top: 20px; right: 28px; color: var(--ink); font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ---------- CONTATTI ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-col { background: var(--bg-raised); padding: 40px clamp(24px, 4vw, 48px); }
.contact-col h3 { font-size: 1.15rem; margin-bottom: 16px; }
.contact-col p { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.75; }
.contact-col .pdf-link { color: var(--amber); border-bottom: 1px solid var(--amber); text-decoration: none; }

/* ---------- FOOTER ---------- */
footer { padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
footer h4 { font-family: 'Fraunces', serif; font-size: 1.1rem; margin-bottom: 12px; }
footer p, footer a { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.7; text-decoration: none; }
footer .pdf-link { color: var(--amber); border-bottom: 1px solid var(--amber); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .about-grid, .cavity-grid, .contact-grid { grid-template-columns: 1fr; }
  .activity-grid, .navcard-grid { grid-template-columns: 1fr 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; }
  .casestudy-grid { grid-template-columns: 1fr 1fr; }
  .mini-event-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-links, header > .container > .lang-switch { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 560px) {
  .activity-grid, .navcard-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .casestudy-grid { grid-template-columns: 1fr; }
}
