/* ==========================================================================
   Artisti Associati – MATT'Officina
   Stylesheet principale
   ========================================================================== */

:root{
  /* Palette */
  --color-cream: #FBF3E6;
  --color-cream-alt: #F3E4CB;
  --color-cream-deep: #ECD9B8;
  --color-charcoal: #2B241D;
  --color-charcoal-soft: #564B3F;
  --color-terracotta: #C15A34;
  --color-terracotta-dark: #9A421F;
  --color-ochre: #E8A63C;
  --color-ochre-soft: #F3CB7F;
  --color-coral: #E1436A;
  --color-coral-dark: #B92A4C;
  --color-white: #FFFDF9;

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 40px -18px rgba(43, 36, 29, .35);
  --shadow-card: 0 10px 28px -12px rgba(43, 36, 29, .28);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
p{ margin: 0 0 1em; }
button{ font-family: inherit; }

:focus-visible{
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
}

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Utility ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--color-terracotta-dark);
  margin-bottom: .8em;
}
.eyebrow::before{
  content: '';
  width: 26px;
  height: 3px;
  background: var(--color-coral);
  border-radius: 2px;
  display: inline-block;
}
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--alt{ background: var(--color-cream-alt); }
.section--charcoal{
  background: var(--color-charcoal);
  color: var(--color-cream);
}
.section--charcoal h2, .section--charcoal h3{ color: var(--color-cream); }
.section-head{
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head p{ color: var(--color-charcoal-soft); font-size: 1.08rem; }
.lede{ font-size: 1.18rem; color: var(--color-charcoal-soft); max-width: 62ch; }

.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.btn:hover svg{ transform: translateX(4px); }
.btn-primary{
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: 0 14px 30px -12px rgba(225, 67, 106, .6);
}
.btn-primary:hover{
  background: var(--color-coral-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -12px rgba(225, 67, 106, .7);
}
.btn-outline{
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover{
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
  transform: translateY(-3px);
}
.btn-light{
  background: var(--color-white);
  color: var(--color-charcoal);
}
.btn-light:hover{
  background: var(--color-ochre);
  transform: translateY(-3px);
}
.btn-block{ width: 100%; justify-content: center; }
.btn-narrow{ padding: 7px 14px; font-size: .78rem; gap: 6px; }
.btn-narrow svg{ width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 243, 230, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 36, 29, .08);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo{
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
  padding: 4px;
  box-shadow: 0 4px 14px -6px rgba(43,36,29,.4);
}
.brand-text{
  font-family: var(--font-display);
  line-height: 1.15;
  font-size: .95rem;
  color: var(--color-charcoal-soft);
}
.brand-text strong{
  display: block;
  font-size: 1.28rem;
  color: var(--color-terracotta-dark);
  font-weight: 700;
}

.main-nav ul{
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .97rem;
  color: var(--color-charcoal-soft);
  transition: background .25s ease, color .25s ease;
}
.main-nav a:hover{
  background: var(--color-cream-deep);
  color: var(--color-charcoal);
}
.main-nav a.active{
  background: var(--color-terracotta);
  color: var(--color-white);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--color-cream-deep);
  cursor: pointer;
}
.nav-toggle span{
  width: 22px;
  height: 3px;
  background: var(--color-charcoal);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px){
  .nav-toggle{ display: flex; }
  .main-nav{
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - var(--header-h));
    background: var(--color-cream);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
    overflow-y: auto;
  }
  .main-nav.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul{
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px 40px;
    gap: 10px;
  }
  .main-nav a{
    padding: 16px 20px;
    font-size: 1.15rem;
    border-radius: 14px;
    text-align: center;
  }
  .brand-text{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,22,15,.35) 0%, rgba(24,17,11,.55) 55%, rgba(20,14,9,.88) 100%);
  z-index: 1;
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 90px 0 72px;
  max-width: 760px;
}
.hero .eyebrow{ color: var(--color-ochre-soft); }
.hero .eyebrow::before{ background: var(--color-ochre); }
.hero h1{
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  color: var(--color-white);
  margin-bottom: .38em;
}
.hero p{
  font-size: 1.2rem;
  color: rgba(255,253,249,.9);
  max-width: 56ch;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.page-hero{
  min-height: 52vh;
  align-items: center;
}
.page-hero .hero-content{ padding: 60px 0; }

/* ---------- Cards: laboratori ---------- */
.lab-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.lab-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(43,36,29,.06);
}
.lab-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}
.lab-card-media{
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.lab-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.lab-card:hover .lab-card-media img{ transform: scale(1.07); }
.lab-card-tag{
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-white);
  color: var(--color-terracotta-dark);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
}
.lab-card-body{
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lab-card-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-cream-alt);
  color: var(--color-charcoal-soft);
}
.pill--day{ background: var(--color-coral); color: var(--color-white); }
.lab-card-body h3{ font-size: 1.5rem; margin-bottom: .3em; }
.lab-card-body .project-name{
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-terracotta);
  margin-bottom: .4em;
}
.lab-card-body p{ color: var(--color-charcoal-soft); flex: 1; }
.lab-card-body .btn{ margin-top: 10px; align-self: flex-start; }

@media (max-width: 980px){
  .lab-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .lab-grid{ grid-template-columns: 1fr; }
}

/* ---------- Info strip (laboratori page) ---------- */
.info-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.info-item{
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(43,36,29,.06);
}
.info-item .icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-cream-alt);
  color: var(--color-terracotta-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.info-item .icon svg{ width: 24px; height: 24px; }
.info-item h4{ font-size: 1.05rem; margin-bottom: .3em; }
.info-item p{ color: var(--color-charcoal-soft); font-size: .95rem; margin: 0; }

@media (max-width: 980px){
  .info-strip{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .info-strip{ grid-template-columns: 1fr; }
}

/* ---------- Event cards ---------- */
.event-hero-card{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.event-hero-media{ position: relative; min-height: 360px; }
.event-hero-media img{
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.event-hero-media img.contain-fit{
  object-fit: contain;
  box-sizing: border-box;
  padding: 40px;
  background: var(--color-cream-alt);
}
.event-hero-media img.crop-top{
  object-fit: cover;
  object-position: center 8%;
}
.event-hero-body{
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-hero-body .eyebrow{ color: var(--color-ochre-soft); }
.event-hero-body .eyebrow::before{ background: var(--color-ochre); }
.event-hero-body h2{ color: var(--color-white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.event-hero-body p{ color: rgba(251,243,230,.82); }
.event-hero-body .btn{ margin-top: 8px; }

@media (max-width: 880px){
  .event-hero-card{ grid-template-columns: 1fr; }
  .event-hero-media{ min-height: 260px; }
  .event-hero-body{ padding: 36px 28px; }
}

.event-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.event-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(43,36,29,.06);
  display: flex;
  flex-direction: column;
}
.event-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.event-card-media{ aspect-ratio: 16/10; overflow: hidden; }
.event-card-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-card-media img{ transform: scale(1.06); }
.event-card-media img.logo-fit{
  object-fit: contain;
  padding: 36px;
  background: var(--color-white);
}
.event-card-media img.mostra-fit{
  object-fit: contain;
  padding: 14px;
  background: var(--color-white);
}
.event-card:hover .event-card-media img.logo-fit{ transform: none; }
.event-card-body{ padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.event-card-body .eyebrow{ font-size: .72rem; }
.event-card-body h3{ font-size: 1.28rem; }
.event-card-body p{ color: var(--color-charcoal-soft); flex: 1; }
.event-card-body .btn{ margin-top: 14px; align-self: flex-start; }

@media (max-width: 980px){ .event-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .event-grid{ grid-template-columns: 1fr; } }

/* ---------- Artist bio page (mostra) ---------- */
.article-col{ max-width: 720px; margin: 0 auto; }
.article-col h2{ font-size: 1.6rem; }
.article-col h3{ font-size: 1.15rem; color: var(--color-terracotta-dark); margin-top: 2em; }
.article-col p{ color: var(--color-charcoal-soft); }
.article-col hr{ border: none; border-top: 1px solid rgba(43,36,29,.12); margin: 40px 0; }
.work-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 8px 0 40px;
}
.work-photo{
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.contact-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 32px;
}
.qr-box{
  text-align: center;
  margin-top: 8px;
}
.qr-box img{
  max-width: 160px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ---------- Split / about blocks ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.split-media img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-media::before{
  content: '';
  position: absolute;
  inset: -14px auto auto -14px;
  width: 90px; height: 90px;
  border: 6px solid var(--color-ochre);
  border-radius: var(--radius-md);
  z-index: -1;
}
.split-text .eyebrow{ margin-bottom: .8em; }
.split-text p{ color: var(--color-charcoal-soft); }
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; gap: 36px; }
  .split.reverse{ direction: ltr; }
}

/* value grid (chi siamo) */
.value-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.value-chip{
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(43,36,29,.06);
  font-weight: 800;
  color: var(--color-terracotta-dark);
}
@media (max-width: 900px){ .value-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .value-grid{ grid-template-columns: repeat(2, 1fr); } }

.stat-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat{
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius-md);
  background: rgba(251,243,230,.06);
  border: 1px solid rgba(251,243,230,.14);
}
.stat .num{
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-ochre-soft);
  display: block;
}
.stat .label{ font-size: .92rem; color: rgba(251,243,230,.78); }
@media (max-width: 780px){ .stat-row{ grid-template-columns: repeat(2, 1fr); } }

/* timeline (chi siamo) */
.timeline-quote{
  border-left: 4px solid var(--color-coral);
  padding: 6px 0 6px 26px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-charcoal);
}
.timeline-quote cite{
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-charcoal-soft);
}

/* ---------- Artist grid (mostra.html) ---------- */
.artist-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.artist-card{
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
}
.artist-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.artist-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.artist-card:hover img{ transform: scale(1.08); }
.artist-card .artist-name{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(20,14,9,.85), transparent);
  color: var(--color-white);
  font-weight: 800;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.artist-card:hover .artist-name{
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px){
  .artist-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px){
  .artist-grid{ grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Gallery preview (home) ---------- */
.preview-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
}
.preview-grid a{
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  position: relative;
}
.preview-grid img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.preview-grid a:hover img{ transform: scale(1.08); }
.preview-grid a:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.preview-grid a:nth-child(4){ grid-row: span 2; }

@media (max-width: 780px){
  .preview-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .preview-grid a:nth-child(1){ grid-column: span 2; grid-row: span 2; }
  .preview-grid a:nth-child(4){ grid-row: span 1; }
}

/* ---------- Masonry gallery (galleria.html) ---------- */
.masonry{
  column-count: 4;
  column-gap: 20px;
}
.masonry figure{
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: zoom-in;
}
.masonry figure img{
  width: 100%;
  display: block;
  transition: transform .5s ease;
}
.masonry figure:hover img{ transform: scale(1.06); }
.masonry figure figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(20,14,9,.85), transparent);
  color: var(--color-white);
  font-size: .84rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.masonry figure:hover figcaption{ opacity: 1; transform: translateY(0); }

.media-placeholder{
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--color-cream-deep), var(--color-cream-deep) 12px, var(--color-cream-alt) 12px, var(--color-cream-alt) 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-charcoal-soft);
  font-weight: 700;
  font-size: .82rem;
  padding: 18px;
}
.media-placeholder svg{ width: 30px; height: 30px; opacity: .55; }

.masonry figure.placeholder{
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(135deg, var(--color-cream-deep), var(--color-cream-deep) 12px, var(--color-cream-alt) 12px, var(--color-cream-alt) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-charcoal-soft);
  font-weight: 700;
  font-size: .88rem;
  padding: 20px;
  cursor: default;
}

@media (max-width: 980px){ .masonry{ column-count: 3; } }
@media (max-width: 680px){ .masonry{ column-count: 2; column-gap: 14px; } }
@media (max-width: 440px){ .masonry{ column-count: 1; } }

.gallery-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn{
  border: 2px solid rgba(43,36,29,.15);
  background: var(--color-white);
  color: var(--color-charcoal-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-btn:hover{ border-color: var(--color-terracotta); color: var(--color-terracotta-dark); }
.filter-btn.active{
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-white);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,14,9,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open{ opacity: 1; pointer-events: auto; }
.lightbox img{
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.lightbox-caption{
  color: var(--color-cream);
  text-align: center;
  margin-top: 16px;
  font-weight: 700;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: rgba(251,243,230,.12);
  border: 1px solid rgba(251,243,230,.3);
  color: var(--color-cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background .25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(251,243,230,.28); }
.lightbox-close{ top: 24px; right: 24px; }
.lightbox-prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px){
  .lightbox{ padding: 16px; }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
  .lightbox-close{ top: 10px; right: 10px; }
}

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--color-terracotta) 0%, var(--color-coral) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-soft);
}
.cta-band h2{ color: var(--color-white); margin-bottom: .2em; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-band p{ color: rgba(255,253,249,.9); margin: 0; max-width: 46ch; }
.cta-band .btn-light:hover{ color: var(--color-terracotta-dark); }

/* ---------- Contatti ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(43,36,29,.06);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--color-cream-alt);
  color: var(--color-terracotta-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card .icon svg{ width: 26px; height: 26px; }
.contact-card h3{ font-size: 1.15rem; margin-bottom: .25em; }
.contact-card p{ color: var(--color-charcoal-soft); margin: 0; }
.contact-card a{ font-weight: 700; color: var(--color-terracotta-dark); }
.contact-card a:hover{ text-decoration: underline; }

.social-row{ display: flex; gap: 14px; margin-top: 8px; }
.social-row a{
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-cream-alt);
  transition: transform .25s ease;
}
.social-row a:hover{ transform: translateY(-4px); }
.social-row img{ width: 24px; height: 24px; object-fit: contain; }

.map-embed{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(43,36,29,.06);
  aspect-ratio: 4/3;
}
.map-embed iframe{ width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--color-charcoal);
  color: rgba(251,243,230,.82);
  padding: 72px 0 0;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand{ display: flex; flex-direction: column; gap: 14px; }
.footer-brand img{ height: 44px; width: 44px; border-radius: 50%; background: var(--color-white); padding: 4px; }
.footer-brand p{ font-size: .92rem; color: rgba(251,243,230,.65); margin: 0; }
.footer-col h4{
  color: var(--color-cream);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1em;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: .93rem; transition: color .2s ease; }
.footer-col a:hover{ color: var(--color-ochre-soft); }
.footer-col .social-row{ margin-top: 4px; }
.footer-bottom{
  border-top: 1px solid rgba(251,243,230,.12);
  padding: 22px 0;
  text-align: center;
  font-size: .84rem;
  color: rgba(251,243,230,.5);
}

@media (max-width: 900px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-inner{ grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* ---------- Generic responsive tweaks ---------- */
@media (max-width: 900px){
  .section{ padding: 64px 0; }
  .split-media img{ aspect-ratio: 4/4; }
}
@media (max-width: 780px){
  .contact-grid{ grid-template-columns: 1fr; }
  .event-hero-body{ padding: 32px 24px; }
}
