/* ============================================================
   Associazione Eredità e Memoria — style.css
   Palette: bordeaux memoriale + crema caldo + oro
   ============================================================ */

:root{
  --wine:        #6b1f2a;
  --wine-dark:   #3d1119;
  --wine-light:  #8a2f3c;
  --wine-soft:   #f0dee1;
  --cream:       #f4eee0;
  --parchment:   #eae0c8;
  --parchment-2: #e2d5b8;
  --ink:         #2a231e;
  --ink-soft:    #5c5248;
  --gold:        #b8863e;
  --gold-light:  #d9b876;
  --white:       #fffaf2;

  --shadow-sm: 0 2px 10px rgba(42,23,16,0.10);
  --shadow-md: 0 10px 30px rgba(42,23,16,0.16);
  --shadow-lg: 0 20px 50px rgba(42,23,16,0.22);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --header-h: 128px;
  --header-h-shrunk: 78px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0 0 .5em; line-height:1.15; color: var(--wine-dark); }
p{ margin:0 0 1em; }

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

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

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-body);
  font-weight:600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wine);
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--gold);
  display:inline-block;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight:600;
  font-size: .95rem;
  letter-spacing:.01em;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--wine); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--wine-dark); box-shadow: var(--shadow-md); }
.btn-ghost{ background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-ghost:hover{ background: var(--wine); color: var(--white); }
.btn-gold{ background: var(--gold); color: var(--white); }
.btn-gold:hover{ background:#a3752f; }

/* ============ MEDAGLIONE (elemento distintivo) ============ */
.medallion-divider{
  display:flex; align-items:center; justify-content:center;
  gap: 18px;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  padding: 8px 0 0;
}
.medallion-divider .line{ flex:1; height:1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.medallion-divider .seal{
  width: 34px; height:34px; border-radius:50%;
  border: 1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
  flex-shrink:0;
}
.medallion-divider .seal svg{ width:16px; height:16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  background: var(--cream);
  border-bottom: 1px solid rgba(107,31,42,0.08);
  transition: background .4s ease, box-shadow .4s ease, padding .35s ease;
}
.site-header.is-scrolled{
  background: rgba(244,238,224,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
.header-top{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px 24px 10px;
  transition: padding .35s ease, opacity .35s ease;
}
.site-header.is-scrolled .header-top{ padding: 12px 24px 6px; }

.brand{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  text-align:center;
}
.brand-crest{
  width: 46px; height:46px;
  border-radius:50%;
  border: 1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  color: var(--wine);
  transition: width .35s ease, height .35s ease, opacity .35s ease;
  flex-shrink:0;
}
.brand-crest svg{ width:22px; height:22px; }
.site-header.is-scrolled .brand-crest{ width:32px; height:32px; }
.site-header.is-scrolled .brand-crest svg{ width:15px; height:15px; }

.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--wine-dark);
  letter-spacing: .01em;
  transition: font-size .35s ease;
}
.brand-sub{
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: opacity .3s ease, max-height .3s ease, margin .3s ease;
  overflow:hidden;
}
.site-header.is-scrolled .brand-sub{ opacity:0; max-height:0; margin:0; }

.lang-switch{
  position:absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  display:flex; gap:8px;
  align-items:center;
}
.lang-switch button{
  background:none; border:1.5px solid transparent;
  border-radius: 8px;
  padding: 4px;
  cursor:pointer;
  line-height:0;
  transition: border-color .2s ease, transform .2s ease;
}
.lang-switch button:hover{ transform: translateY(-1px); }
.lang-switch button.is-active{ border-color: var(--gold); }
.lang-switch .flag{
  width: 26px; height:19px;
  border-radius:3px;
  display:block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  overflow:hidden;
}

.hamburger{
  display:none;
  position:absolute;
  left: 24px; top:50%;
  transform: translateY(-50%);
  width: 40px; height:40px;
  border:none; background:none;
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.hamburger span{
  width: 22px; height:2px;
  background: var(--wine-dark);
  transition: transform .3s ease, opacity .3s ease;
}

.main-nav{
  transition: opacity .3s ease, max-height .35s ease, padding .3s ease;
}
.main-nav > ul{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 6px;
  flex-wrap:wrap;
  padding: 6px 24px 18px;
}
.site-header.is-scrolled .main-nav > ul{ padding: 4px 24px 12px; }

.main-nav a, .main-nav > ul > li > span{
  display:inline-block;
  padding: 8px 16px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
  cursor:pointer;
}
.main-nav a:hover, .main-nav li.has-sub:hover > a{ background: var(--wine-soft); color: var(--wine-dark); }
.main-nav a.is-active{ background: var(--wine); color: var(--white); }

.main-nav li.has-sub{ position:relative; display:flex; align-items:center; }
.main-nav li.has-sub > a{ flex:1; }
.submenu-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: 8px;
  flex-shrink:0;
  transition: background .2s ease, transform .2s ease;
}
.submenu-toggle:hover{ background: var(--wine-soft); }
.main-nav li.has-sub.is-open .submenu-toggle{ transform: rotate(180deg); }
.main-nav .sub-menu{
  position:absolute;
  top: 100%; left:50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 260px;
  opacity:0; visibility:hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 50;
}
.main-nav li.has-sub:hover .sub-menu,
.main-nav li.has-sub:focus-within .sub-menu{
  opacity:1; visibility:visible; transform: translateX(-50%) translateY(0);
}
.main-nav .sub-menu a{
  display:block; border-radius:10px; padding:10px 14px; white-space:normal;
}

/* mobile off-canvas */
.nav-overlay{
  position: fixed; inset:0; background: rgba(42,23,16,.45);
  opacity:0; visibility:hidden; transition: opacity .3s ease, visibility .3s ease;
  z-index: 490;
}
.nav-overlay.is-open{ opacity:1; visibility:visible; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero{
  position: relative;
  height: 92vh;
  min-height: 560px;
  margin-top: var(--header-h);
  overflow:hidden;
  background: var(--wine-dark);
}
.hero-slide{
  position:absolute; inset:0;
  opacity:0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active{ opacity:1; z-index:2; }
.hero-slide img{
  width:100%; height:100%; object-fit:cover;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.hero-slide.is-active img{ transform: scale(1.0); }
.hero-slide::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(61,17,25,.55) 0%, rgba(61,17,25,.28) 40%, rgba(61,17,25,.75) 100%);
}

.hero-content{
  position:absolute; inset:0; z-index:5;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  color: var(--white);
  padding: 0 20px;
}
.hero-content .eyebrow{ color: var(--gold-light); justify-content:center; }
.hero-content .eyebrow::before{ background: var(--gold-light); }
.hero-title{
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  color: var(--white);
  max-width: 820px;
  margin: .3em 0 .4em;
}
.hero-caption{
  font-size: 1rem;
  color: rgba(255,250,242,.88);
  max-width: 560px;
  min-height: 1.6em;
}
.hero-actions{ margin-top: 26px; display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

.hero-dots{
  position:absolute; bottom: 26px; left:50%; transform:translateX(-50%);
  display:flex; gap:9px; z-index:6;
}
.hero-dots button{
  width:8px; height:8px; border-radius:50%;
  background: rgba(255,250,242,.4);
  border: none; padding:0; cursor:pointer;
  transition: background .3s ease, width .3s ease;
}
.hero-dots button.is-active{ background: var(--gold-light); width:24px; border-radius:5px; }

.scroll-cue{
  position:absolute; bottom: 26px; right: 32px; z-index:6;
  color: rgba(255,250,242,.7);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  font-size:.7rem; letter-spacing:.16em; text-transform:uppercase;
}
.scroll-cue .stick{ width:1px; height:34px; background: rgba(255,250,242,.5); position:relative; overflow:hidden; }
.scroll-cue .stick::after{
  content:""; position:absolute; top:-40%; left:0; width:100%; height:40%;
  background: var(--gold-light);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{ 0%{ top:-40%; } 100%{ top:100%; } }

/* page hero (inner pages, no carousel) */
.page-hero{
  margin-top: var(--header-h);
  padding: 76px 0 56px;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(184,134,62,.14), transparent 60%),
    linear-gradient(180deg, var(--wine-dark), var(--wine));
  color: var(--white);
  text-align:center;
}
.page-hero .eyebrow{ color: var(--gold-light); justify-content:center; }
.page-hero .eyebrow::before{ background: var(--gold-light); }
.page-hero h1{ color: var(--white); margin-top:.3em; }
.page-hero p{ max-width: 640px; margin: 0 auto; color: rgba(255,250,242,.85); }

/* un po' più di respiro sotto l'header, che è volutamente alto */
@media (min-width: 761px){
  .page-hero{ padding-top: 114px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section{ padding: 90px 0; position:relative; }
.section-cream{ background: var(--cream); }
.section-parchment{
  background: var(--parchment);
  background-image:
    radial-gradient(700px 300px at 90% 0%, rgba(107,31,42,.05), transparent 60%),
    repeating-linear-gradient(135deg, rgba(107,31,42,.025) 0px, rgba(107,31,42,.025) 1px, transparent 1px, transparent 26px);
}
.section-wine{ background: var(--wine-dark); color: var(--white); }
.section-wine h2{ color: var(--white); }
.section-head{ text-align:center; max-width: 680px; margin: 0 auto 46px; }
.section-head p{ color: var(--ink-soft); }
.section-wine .section-head p{ color: rgba(255,250,242,.8); }

.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ transition-delay: calc(var(--i,0) * 90ms); }

/* --- About --- */
.about-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items:center;
}
.about-text .eyebrow{ margin-bottom: 14px; }
.about-text h2{ font-size: clamp(1.7rem,3vw,2.4rem); }
.about-text p{ color: var(--ink-soft); font-size: 1.03rem; }
blockquote.pull-quote{
  margin: 26px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(184,134,62,.08);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--wine-dark);
}
blockquote.pull-quote footer{ margin-top:10px; font-family: var(--font-body); font-style:normal; font-size:.82rem; color: var(--ink-soft); letter-spacing:.03em; }

.about-media{ position:relative; }
.about-media .frame{
  position:relative; border-radius: 22px; overflow:hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-media .frame img{ width:100%; height:100%; object-fit:cover; }
.about-media .frame-tag{
  position:absolute; left:18px; bottom:18px;
  background: rgba(255,250,242,.92);
  color: var(--wine-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .78rem; font-weight:600; letter-spacing:.04em;
  box-shadow: var(--shadow-sm);
}
.about-media .ring{
  position:absolute; width:150px; height:150px;
  border: 1.5px solid var(--gold);
  border-radius:50%;
  top:-30px; right:-30px;
  z-index:-1;
  opacity:.6;
}

/* --- Photo strip / gallery teaser --- */
.photo-strip{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 10px;
}
.photo-strip a{ position:relative; border-radius: 14px; overflow:hidden; display:block; }
.photo-strip a img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.photo-strip a:hover img{ transform: scale(1.08); }
.photo-strip a::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(61,17,25,.55));
  opacity:0; transition: opacity .3s ease;
}
.photo-strip a:hover::after{ opacity:1; }
.photo-strip .p1{ grid-column: span 2; grid-row: span 2; }
.photo-strip .p2{ grid-column: span 2; }
.photo-strip .p3{ grid-column: span 2; }
.photo-strip .p4{ grid-column: span 2; }
.photo-strip .p5{ grid-column: span 2; grid-row: span 2; }
.photo-strip .p6{ grid-column: span 2; }

/* --- Event card --- */
.event-card{
  max-width: 760px; margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow:hidden;
  display:grid;
  grid-template-columns: 220px 1fr;
}
.event-card .event-media{ position:relative; min-height: 220px; background: var(--wine-soft); }
.event-card .event-media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.event-card .event-media .badge{
  position:absolute; top:14px; left:14px;
  background: var(--gold); color: var(--white);
  font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding: 6px 12px; border-radius:999px;
}
.event-card .event-body{ padding: 30px 32px; }
.event-card .event-date{
  display:flex; align-items:center; gap:10px;
  font-size:.82rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color: var(--wine);
  margin-bottom: 10px;
}
.event-card h3{ font-size: 1.4rem; margin-bottom:.4em; }
.event-card p{ color: var(--ink-soft); }
.event-empty{
  max-width: 620px; margin: 0 auto; text-align:center;
  padding: 46px 30px;
  border: 1.5px dashed var(--gold);
  border-radius: 22px;
  background: rgba(184,134,62,.06);
}

/* --- Articles --- */
.articles-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.article-card{
  background: var(--white);
  border-radius: 20px;
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
  display:flex; flex-direction:column;
}
.article-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.article-card .thumb{ aspect-ratio: 16/10; overflow:hidden; background: var(--parchment-2); }
.article-card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.article-card:hover .thumb img{ transform: scale(1.06); }
.article-card .body{ padding: 22px 24px 26px; flex:1; display:flex; flex-direction:column; }
.article-meta{ display:flex; gap:10px; align-items:center; font-size:.76rem; color: var(--ink-soft); letter-spacing:.03em; margin-bottom:8px; text-transform:uppercase; }
.article-meta .dot{ width:3px; height:3px; border-radius:50%; background: var(--gold); }
.article-card h3{ font-size: 1.18rem; margin-bottom:.5em; }
.article-card .excerpt{ color: var(--ink-soft); font-size:.92rem; flex:1; }
.article-card .read-more{ margin-top:14px; font-weight:600; font-size:.85rem; color: var(--wine); display:inline-flex; align-items:center; gap:6px; }
.article-card .read-more svg{ width:14px; height:14px; transition: transform .2s ease; }
.article-card:hover .read-more svg{ transform: translateX(4px); }

.news-list{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 980px){ .news-list{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .news-list{ grid-template-columns: 1fr; } }

.center-cta{ text-align:center; margin-top: 44px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--wine-dark);
  color: rgba(255,250,242,.85);
  padding: 64px 0 26px;
  position:relative;
}
.site-footer::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--gold), var(--wine-light), var(--gold));
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,250,242,.14);
}
.footer-brand{ display:flex; flex-direction:column; gap:14px; }
.footer-brand .brand-name{ color: var(--white); font-size:1.35rem; }
.footer-brand p{ color: rgba(255,250,242,.65); font-size:.92rem; max-width: 320px; }
.footer-social{ display:flex; gap:12px; margin-top:4px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  border: 1.5px solid rgba(255,250,242,.3);
  display:flex; align-items:center; justify-content:center;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-social a:hover{ background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-social svg{ width:17px; height:17px; }
.footer-social.center{ justify-content:center; }

.footer-follow-list li{ margin-bottom: 12px; }
.footer-follow-list a{ display:flex; align-items:center; gap:12px; color: rgba(255,250,242,.85); font-weight:500; }
.footer-follow-list a:hover{ color: var(--white); padding-left:0; }
.footer-follow-list .ic{
  width:34px; height:34px; border-radius:50%;
  border: 1.5px solid rgba(255,250,242,.3);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition: background .25s ease, border-color .25s ease;
}
.footer-follow-list .ic svg{ width:15px; height:15px; }
.footer-follow-list a:hover .ic{ background: var(--gold); border-color: var(--gold); }

.footer-col h4{
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size:.78rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  margin-bottom:16px;
}
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ color: rgba(255,250,242,.75); font-size:.92rem; transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover{ color: var(--white); padding-left:4px; }

.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding-top: 24px;
  font-size:.82rem;
  color: rgba(255,250,242,.55);
}
.footer-bottom a{ color: rgba(255,250,242,.75); }
.footer-bottom a:hover{ color: var(--gold-light); }

/* ============================================================
   INNER PAGE GENERIC (progetti, contribuisci, contatti, galleria...)
   ============================================================ */
.prose{ max-width: 780px; margin: 0 auto; }
.prose h2{ font-size: 1.7rem; margin-top: 1.3em; }
.prose p{ color: var(--ink-soft); font-size: 1.03rem; }

.timeline{ max-width: 820px; margin: 0 auto; display:flex; flex-direction:column; gap:0; }
.timeline-item{
  display:grid; grid-template-columns: 120px 1fr; gap: 30px;
  padding: 34px 0;
  border-top: 1px solid rgba(107,31,42,.12);
  position:relative;
}
.timeline-item:first-child{ border-top:none; }
.timeline-year{ font-family: var(--font-display); font-size:2rem; color: var(--gold); font-weight:600; }
.timeline-body h3{ font-size:1.25rem; }
.timeline-body p{ color: var(--ink-soft); }
.timeline-body .frame{ margin-top:16px; border-radius:16px; overflow:hidden; box-shadow: var(--shadow-sm); max-width: 480px; }

.cards-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.cards-2{ grid-template-columns: repeat(2,1fr); max-width: 760px; margin: 0 auto; }
.cards-3.cards-1{ grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

.iban-box{
  max-width: 600px; margin: 48px auto 0;
  background: var(--white); border-radius: 20px;
  padding: 30px 34px; box-shadow: var(--shadow-sm);
  text-align:center;
}
.iban-label{
  font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color: var(--wine); margin-bottom: 16px;
}
.iban-row{ display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.iban-row code{
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.08rem; letter-spacing:.03em;
  background: var(--cream); color: var(--wine-dark); font-weight:600;
  padding: 12px 18px; border-radius: 12px;
}
.btn-sm{ padding: 10px 20px; font-size:.85rem; }
.btn-sm svg{ width:15px; height:15px; }
.btn-gold.is-copied{ background: var(--wine); }
.info-card{
  background: var(--white); border-radius:18px; padding: 30px 26px;
  box-shadow: var(--shadow-sm); text-align:center;
}
.info-card .icon-circle{
  width:56px; height:56px; border-radius:50%;
  background: var(--wine-soft); color: var(--wine);
  display:flex; align-items:center; justify-content:center; margin: 0 auto 16px;
}
.info-card .icon-circle svg{ width:26px; height:26px; }
.info-card h3{ font-size:1.1rem; }
.info-card p{ color: var(--ink-soft); font-size:.92rem; }

.contact-wrap{
  display:grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items:start;
}
.contact-info{ background: var(--wine-dark); color: var(--white); border-radius: 22px; padding: 40px 34px; }
.contact-info h3{ color: var(--white); }
.contact-info .row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.contact-info .row .ic{ width:38px; height:38px; border-radius:50%; border:1.5px solid var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info .row .ic svg{ width:17px; height:17px; color: var(--gold-light); }
.contact-info .row a, .contact-info .row span{ color: rgba(255,250,242,.9); font-size:.95rem; }

.map-card{
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,250,242,.16);
}
.map-card iframe{
  width:100%; height: 200px; border:0; display:block;
  filter: grayscale(12%) contrast(1.04);
}
.map-open-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px; background: var(--gold); color: var(--white);
  font-weight:600; font-size:.85rem; letter-spacing:.02em;
  transition: background .2s ease;
}
.map-open-btn:hover{ background:#a3752f; }
.map-open-btn svg{ width:15px; height:15px; }

.contact-form{ background: var(--white); border-radius: 22px; padding: 40px; box-shadow: var(--shadow-sm); }
.form-row{ margin-bottom: 20px; }
.form-row label{ display:block; font-size:.82rem; font-weight:600; letter-spacing:.03em; margin-bottom:8px; color: var(--ink); }
.form-row input, .form-row textarea{
  width:100%; padding: 13px 16px; border-radius:12px;
  border: 1.5px solid rgba(107,31,42,.18);
  font-family: var(--font-body); font-size: .95rem;
  background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus{ outline:none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(107,31,42,.12); }
.form-note{ font-size:.82rem; color: var(--ink-soft); margin-top: 6px; }

/* --- gallery page --- */
.gallery-grid{
  columns: 3 220px;
  column-gap: 14px;
}
.gallery-grid a{ display:block; margin-bottom:14px; border-radius:14px; overflow:hidden; break-inside: avoid; box-shadow: var(--shadow-sm); }
.gallery-grid img{ width:100%; display:block; transition: transform .5s ease, filter .5s ease; }
.gallery-grid a:hover img{ transform: scale(1.04); }

/* --- article detail --- */
.article-detail{ max-width: 760px; margin:0 auto; }
.article-detail .hero-img{ border-radius:20px; overflow:hidden; box-shadow: var(--shadow-md); margin-bottom: 34px; }
.article-detail h1{ font-size: clamp(1.8rem,3.4vw,2.5rem); }
.article-detail .article-meta{ justify-content:center; margin-bottom: 20px; }
.article-detail .body-text{ font-size: 1.08rem; color: var(--ink); }
.article-detail .body-text p{ margin-bottom: 1.3em; }

.related-strip{ margin-top: 70px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width: 48px; height:48px; border-radius:50%;
  background: var(--wine); color: var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md);
  opacity:0; visibility:hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
  border:none; cursor:pointer;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:none; }
.back-to-top:hover{ background: var(--wine-dark); }
.back-to-top svg{ width:18px; height:18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-media{ order:-1; max-width: 420px; margin: 0 auto; }
  .articles-grid{ grid-template-columns: 1fr; }
  .cards-3{ grid-template-columns: 1fr 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .photo-strip{ grid-template-columns: repeat(4,1fr); grid-auto-rows: 120px; }
  .photo-strip .p1,.photo-strip .p5{ grid-column: span 2; grid-row: span 2; }
  .photo-strip .p2,.photo-strip .p3,.photo-strip .p4,.photo-strip .p6{ grid-column: span 2; }
  .event-card{ grid-template-columns: 1fr; }
  .event-card .event-media{ min-height: 180px; }
  .gallery-grid{ columns: 2 200px; }
}

@media (max-width: 760px){
  :root{ --header-h: 108px; --header-h-shrunk: 66px; }

  .hamburger{ display:flex; }
  .lang-switch{ right: 16px; }
  .lang-switch .flag{ width:24px; height:17px; }

  .main-nav{
    position: fixed; top:0; left:0; bottom:0;
    width: min(78vw, 320px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform .35s ease;
    z-index: 495;
    overflow-y:auto;
    padding-top: 90px;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav > ul{ flex-direction:column; align-items:stretch; padding: 10px 18px 30px; gap:2px; }
  .main-nav a, .main-nav > ul > li > span{ padding: 13px 16px; border-radius:12px; }
  .main-nav li.has-sub .sub-menu{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; padding-left: 10px; margin-top:2px; display:none;
  }
  .main-nav li.has-sub.is-open .sub-menu{ display:block; }
  .submenu-toggle{ display:flex; align-items:center; justify-content:center; }
  .main-nav .nav-close{
    position:absolute; top:20px; right:20px;
    width:36px; height:36px; border-radius:50%;
    border:1.5px solid var(--wine-soft); background:none;
    display:flex; align-items:center; justify-content:center; cursor:pointer;
  }

  .cards-3{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 30px; }
  .timeline-item{ grid-template-columns: 1fr; gap:10px; }
  .gallery-grid{ columns: 2 160px; }
  .news-list{ gap: 20px; }
  section{ padding: 64px 0; }
  .hero{ height: 82vh; }
}

@media (max-width: 520px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
