  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
  }

/* ══════ HERO  ═════ */
.hero {
min-height: 100vh;
min-height: 100dvh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
overflow: hidden;
padding: 120px 40px 80px;
}

.hero::before {
content: '';
position: absolute;
inset: 0;
background:
    radial-gradient(ellipse at 50% 30%, rgba(196,160,78,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(40,25,10,0.8) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(35,20,10,0.5) 0%, transparent 60%);
pointer-events: none;
}

.cornice {
  width:100%;
  display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
  
}

.hero-ornament {
width: 1px;
height: 80px;
background: linear-gradient(to bottom, transparent, var(--gold), transparent);
margin-bottom: 40px;
opacity: 0;
animation: fadeDown 1s ease 0.3s forwards;
}

.hero-pretitle {
font-family: var(--sans);
font-size: 11px;
font-weight: 200;
letter-spacing: 8px;
text-transform: uppercase;
color: var(--cream);
margin-bottom: 28px;
opacity: 0;
animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero h1 {
font-family: var(--serif);
text-transform:uppercase;
font-size: clamp(42px, 7vw, 80px);
font-weight: 300;
line-height: 1.1;
color: var(--gold);
margin-bottom: 28px;
font-style: italic;
opacity: 0;
animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero h1 span {
font-style: italic;
font-weight: 400;
color: var(--gold);
}

.hero-sub {
font-family: var(--serif);
font-size: 19px;
font-weight: 300;
font-style: italic;
line-height: 1.6;
color: var(--text-dim);
max-width: 480px;
margin: 0 auto 52px;
opacity: 0;
animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-cta {
display: inline-block;
font-family: var(--sans);
font-size: 10px;
font-weight: 400;
letter-spacing: 5px;
text-transform: uppercase;
color: var(--gold);
padding: 18px 48px;
border: 1px solid var(--gold);
text-decoration: none;
transition: all 0.5s;
opacity: 0;
animation: fadeUp 0.8s ease 1.1s forwards;
}

.hero-cta:hover {
background: var(--gold);
color: var(--bg-deep);
box-shadow: 0 0 40px rgba(196,160,78,0.2);
}

.hero-scroll {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
opacity: 0;
animation: fadeUp 0.8s ease 1.4s forwards;
}

.hero-scroll span {
font-family: var(--sans);
font-size: 9px;
letter-spacing: 4px;
text-transform: uppercase;
color: var(--text-faint);
}

.scroll-line {
width: 1px;
height: 40px;
background: linear-gradient(to bottom, var(--gold-dim), transparent);
animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}

/* ══════ LA GALLERIA  ═════ */

.block {
    padding: 80px 48px 100px;
    max-width: 1320px;
    margin: 0 auto;
  }

@media (max-width:1200px) {.block {padding: 120px 68px 100px;}}  
@media (max-width:900px) {.block {padding: 80px 24px 100px;}}  

.block + .block { border-top: 1px solid var(--gold-dim); }

.galleria-section {
background: var(--bg-section);
}

.opere-cta-wrap { margin-top: 40px; }

.opere-cta {
display: inline-flex;
align-items: center;
gap: 12px;
font-family: var(--sans);
font-size: 16px;
font-weight: 400;
letter-spacing: 4px;
text-transform: uppercase;
color: var(--gold);
text-decoration: none;
transition: all 0.3s;
}

.opere-cta i{ transition: transform 0.3s; font-size:16px;}
.opere-cta:hover i { color: var(--gold-light); transform: translateX(6px);}


.galleria-layout {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 5fr 4fr;
gap: 64px;
align-items: center;
}

.galleria-img-stack {
position: relative;
height: 500px;
}

.gis-back {
position: absolute;
top: 0; right: 0;
width: 80%;
height: 85%;
background: var(--bg-card);
overflow: hidden;
}

.gis-back img {
width: 100%; height: 100%;
object-fit: cover;
filter: brightness(0.7) saturate(0.8);
}

.gis-front {
position: absolute;
bottom: 0; left: 0;
width: 65%;
height: 65%;
background: var(--bg-card);
border: 2px solid var(--gold-dim);
overflow: hidden;
z-index: 2;
}

.gis-front img {
width: 100%; height: 100%;
object-fit: cover;
filter: brightness(0.85) saturate(0.9);
}

.cell-img {
overflow: hidden;
position: relative;
cursor: pointer;
border-radius: 3px;
}

.cell-img img {
width: 100%;
display: block;
object-fit: cover;
filter: brightness(0.78) saturate(0.88);
transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.cell-img:hover img {
filter: brightness(1) saturate(1);
transform: scale(1.05);
}

.cell-img::after {
content: '';
position: absolute;
inset: 0;
border: 1px solid rgba(196,160,78,0.05);
border-radius: 3px;
pointer-events: none;
transition: border-color 0.4s;
}

.cell-img:hover::after { border-color: rgba(196,160,78,0.18); }

@media (max-width: 900px) {
    .block { padding: 60px 24px 80px; }
    .layout-orig {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
      height: auto;
    }
    .layout-orig .cell-img:first-child {
      grid-row: auto;
      grid-column: 1 / 3;
    }
    .layout-orig .cell-img img { height: auto; aspect-ratio: 4/3; }
    .layout-orig .cell-img:first-child img { aspect-ratio: 16/9; }
}
 @media (max-width: 600px) {
    .block { padding: 48px 16px 64px; }
    .layout-orig {
      grid-template-columns: 1fr 1fr;
      height: auto;
    }
    .layout-orig .cell-img:first-child { grid-column: 1 / 3; grid-row: auto; }
    .layout-orig .cell-img img { height: auto !important; aspect-ratio: 4/3 !important; }
    .layout-orig .cell-img:first-child img { aspect-ratio: 16/9 !important; }
}

/* ══════ STORIA  ═════ */

.storia-layout {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: start;
}

.storia-timeline {
display: flex;
flex-direction: column;
gap: 40px;
margin-top: 20px;
}

.timeline-item {
display: flex;
gap: 24px;
align-items: flex-start;
}

.timeline-year {
font-family: var(--serif);
font-size: 32px;
font-weight: 400;
color: var(--gold);
min-width: 90px;
line-height: 1;
}

.timeline-text {
font-family: var(--serif);
font-size: 15px;
font-weight: 300;
line-height: 1.8;
color: var(--text-dim);
padding-top: 4px;
border-top: 1px solid var(--gold-dim);
}

/* ══════ FOTO  ═════ */

.layout-orig {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 500px;
  }

.layout-orig .cell-img { min-height: 0; }
.layout-orig .cell-img img { height: 100%; }
.layout-orig .cell-img:first-child { grid-row: 1 / 3; }
.layout-orig .cell-img:first-child img { aspect-ratio: 3/5; }
.layout-orig .cell-img:not(:first-child) img { aspect-ratio: auto; }
  @media (max-width: 900px) {
    .block { padding: 60px 24px 80px; }


    .layout-orig {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
      height: auto;
    }
    .layout-orig .cell-img:first-child {
      grid-row: auto;
      grid-column: 1 / 3;
    }
    .layout-orig .cell-img img { height: auto; aspect-ratio: 4/3; }
    .layout-orig .cell-img:first-child img { aspect-ratio: 16/9; }
    }

/* ══════ ASSOCIAZIONI  ═════ */
    .collab-section {
background: var(--bg-section);
}

.collab-layout {
max-width: 1200px;
margin: 0 auto;
}

.collab-row {
margin-top: 48px;
display: flex;
gap: 24px;
flex-wrap: wrap;
justify-content: center;
}

.collab-item {
padding: 18px 36px;
border: 1px solid var(--gold-dim);
font-family: var(--serif);
font-size: 16px;
font-weight: 400;
color: var(--text-dim);
letter-spacing: 1px;
transition: all 0.4s;
text-decoration:none;
text-align:center;
line-height:1.6;
}

.collab-item:hover {
border-color: var(--gold);
color: var(--gold);
}

/* ══════ EVENTI  ═════ */


.eventi-layout {
max-width: 1200px;
margin: 0 auto;
}

.eventi-list {
margin-top: 48px;
}

.ev-item {
display: flex;
align-items: flex-start;
gap: 48px;
padding: 48px 0;
border-bottom: 1px solid var(--gold-dim);
}

.ev-date-block {    
min-width: 120px;
text-align: center;
border: 1px solid var(--gold-dim);
padding: 16px;
flex-shrink: 0;
aspect-ratio: 1 / 1;
}

.ev-day {
font-family: var(--serif);
font-size: 42px;
font-weight: 300;
color: var(--gold);
line-height: 1;
}

.ev-month {
font-family: var(--sans);
font-size: 14px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--text-dim);
margin-top: 4px;
}

.ev-year {
font-family: var(--sans);
font-size: 14px;
letter-spacing: 2px;
color: var(--text-faint);
margin-top: 2px;
}

.ev-title {
font-family: var(--serif);
font-size: 24px;
font-weight: 400;
color: var(--cream);
margin-bottom: 8px;
}

.ev-desc {
font-family: var(--serif);
font-size: 15px;
font-weight: 300;
line-height: 1.7;
color: var(--text-dim);
}

.ev-detail-btn {
display: inline-flex;
align-items: center;
gap: 8px;
font-family: var(--sans);
font-size: 10px;
font-weight: 400;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--gold);
text-decoration: none;
margin-top: 16px;
padding: 10px 24px;
border: 1px solid var(--gold-dim);
transition: all 0.4s;
}

.ev-detail-btn:hover {
border-color: var(--gold);
background: rgba(196,160,78,0.06);
}

.ev-detail-btn::after {
content: '→';
font-size: 13px;
transition: transform 0.3s;
}

.ev-detail-btn:hover::after { transform: translateX(4px); }

/* ══════ CONTATTI  ═════ */

.contatti-section {
background: var(--bg-warm);
}

.contatti-layout {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: start;
}

.contact-item {
margin-bottom: 28px;
}

.contact-item label {
font-family: var(--sans);
font-size: 9px;
letter-spacing: 5px;
text-transform: uppercase;
color: var(--gold);
display: block;
margin-bottom: 6px;
}

.contact-item p {
font-family: var(--serif);
font-size: 17px;
font-weight: 300;
line-height: 1.7;
color: var(--text-dim);
}

.contact-item a {
color: var(--text-dim);
text-decoration: none;
transition: color 0.3s;
}

.contact-item a:hover { color: var(--gold); }

.contact-map {
width: 100%;
aspect-ratio: 4/4;
background: var(--bg-card);
border: 1px solid var(--gold-dim);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--sans);
font-size: 10px;
color: var(--text-faint);
letter-spacing: 3px;
}

.iframe {width:98%;aspect-ratio: 4/4;}

@media (max-width: 900px) {   
    .galleria-layout { grid-template-columns: 1fr; gap: 48px; }
    .galleria-img-stack { height: 350px; }
    .storia-layout { grid-template-columns: 1fr; gap: 48px; }
    .opere-mosaic { flex-wrap: wrap; gap: 12px; }
    .opere-cell {
      flex: 0 0 calc(50% - 6px);
    }
    .opere-cell:nth-child(1) { margin-top: 0 !important; }
    .opere-cell:nth-child(2) { margin-top: 24px !important; }
    .opere-cell:nth-child(3) { margin-top: 0 !important; }
    .opere-cell:nth-child(4) { margin-top: 24px !important; }
    .opere-cell:nth-child(5) { margin-top: 0 !important; }
    .opere-cell img { aspect-ratio: 3/4 !important; }
    .contatti-layout { grid-template-columns: 1fr; gap: 48px; }
    .ev-item { gap: 24px; }   
  }

 
  @media (max-width: 600px) {
    .hero h1 { font-size: 36px; }
    .opere-mosaic { gap: 10px; }
    .opere-cell {
      flex: 0 0 calc(50% - 5px) !important;
      margin-top: 0 !important;
    }
    .opere-cell:nth-child(2) { margin-top: 16px !important; }
    .opere-cell:nth-child(4) { margin-top: 16px !important; }
    .opere-cell img { aspect-ratio: 3/4 !important; }
    .ev-item { flex-direction: column; gap: 16px; }
    .collab-row { flex-direction: column; }    
  }