/* ═══════════════════════════════════════════════════════
   Circolo Scacchistico Valdostano — Design System
   css/style.css
   ═══════════════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --cream:   #FAF6EE;
  --cream2:  #EEE8D8;
  --dark:    #1C1814;
  --gold:    #C49520;
  --gold-lt: #E8C870;
  --gold2:   #9E7818;
  --green:   #2E5230;
  --green2:  #1C3820;
  --mid:     #5A5248;
  --border:  #D8CEBB;
  --white:   #FFFFFF;
  --shadow:  0 4px 24px rgba(0,0,0,0.09);
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; font-family: 'Lato', sans-serif; background: var(--cream); color: var(--dark); font-size: 16px; line-height: 1.65; }

h1, h2, h3, h4 { font-family: 'Cinzel', serif; font-weight: 600; line-height: 1.25; }
a { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold2);
  display: block;
  margin-bottom: 8px;
}
.divider { width: 44px; height: 3px; background: var(--gold); margin: 12px 0 28px; }
.section-head { margin-bottom: 40px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 30px;
  border: 2px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--dark); }
.btn-solid { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--green2); border-color: var(--green2); color: var(--white); }
.btn-dark { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 30px; border: 2px solid var(--white); color: var(--white); cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn-dark:hover { background: var(--white); color: var(--dark); }
.btn-ghost { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 30px; border: 2px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.80); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.30);
}
header .container { max-width: none; padding: 0 200px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; gap: 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: 0.04em; }
.logo-text span { font-size: 0.78rem; color: var(--gold-lt); letter-spacing: 0.1em; text-transform: uppercase; }

nav { display: flex; gap: 4px; align-items: center; }
nav a {
  font-family: 'Cinzel', serif; font-size: 0.70rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.72);
  padding: 8px 10px; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
nav a:hover, nav a.active { color: var(--gold-lt); border-bottom-color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.2s; }

/* ── HERO ── */
.hero {
  position: relative;
  height: calc(100vh - 96px);
  min-height: 520px;
  max-height: 820px;
  background-color: var(--green2);
  background-image: url('../img/hero-home.jpg'); /* fallback; l'immagine stagionale arriva da inline style su .hero */
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    var(--green2)            0%,
    var(--green2)            36%,
    rgba(28,56,32,0.83)      47%,
    rgba(28,56,32,0.48)      59%,
    rgba(28,56,32,0.17)      71%,
    rgba(28,56,32,0)         84%);
  z-index: 1; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    transparent            0%,
    transparent            56%,
    rgba(28,24,20,0.92)   100%);
  z-index: 1; pointer-events: none;
}
.hero-left {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: flex-start;
  /* bottom maggiorato: compensa la stats bar che sale sull'hero (-88px) → blocco testi centrato nell'area visibile */
  padding: 60px 64px 168px 200px;
  flex: 0 0 58%;
}
.hero-content { max-width: 580px; width: 100%; }
.hero-right { display: none; }

.hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--gold-lt); display: block; margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '♟\FE0E'; font-size: 1rem; margin-right: 10px;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem); color: var(--white); margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero h1 em { font-style: normal; color: var(--gold-lt); }
.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  color: var(--gold-lt);
  font-style: italic;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.hero-tagline em { font-style: normal; color: rgba(255,255,255,0.90); }
.hero-sub {
  font-size: 1.08rem; color: rgba(255,255,255,0.82);
  max-width: 480px; margin-bottom: 44px; font-weight: 300; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { border-color: var(--gold-lt); color: var(--gold-lt); }
.hero-actions .btn:hover { background: var(--gold-lt); color: var(--dark); }
.hero-actions .btn-solid { background: var(--green); border-color: var(--green); color: var(--white); }
.hero-actions .btn-solid:hover { background: #3a6b3c; border-color: #3a6b3c; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  border-bottom: 1px solid #2A2420;
  position: relative; z-index: 10;
  margin-top: -88px;
}
.stats-inner { display: flex; align-items: stretch; }
.stat-item {
  flex: 1; text-align: center; padding: 20px 16px;
  border-right: 1px solid #2A2420;
}
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Cinzel', serif; font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }

/* ── SECTIONS ── */
section { padding: 80px 0; }
/* Ancore: compensa header sticky → la section-label resta visibile appena sotto l'header */
section[id] { scroll-margin-top: 36px; }
#news { background: var(--white); }
#tornei { background: var(--cream); }
#chi-siamo { background: var(--white); }

/* ── NEWS ── */
.news-grid { columns: 3; column-gap: 28px; }
.news-card {
  break-inside: avoid;
  margin-bottom: 28px;
  display: block;
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 3px solid var(--gold);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-img {
  background: var(--green2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.25);
  overflow: hidden;
}
/* Aspect ratio per orientamento */
.news-card--L .news-card-img { aspect-ratio: 16/9; }
.news-card--P .news-card-img { aspect-ratio: 3/4; }
/* Fallback senza classe orientamento */
.news-card:not(.news-card--L):not(.news-card--P) .news-card-img { height: 160px; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card:nth-child(1) .news-card-img { background: var(--green); }
.news-card:nth-child(2) .news-card-img { background: #3A2A18; }
.news-card:nth-child(3) .news-card-img { background: #1E2840; }
.news-card-body { padding: 22px; }
.news-tag {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold2); display: block; margin-bottom: 8px;
}
.news-card-body h3 { font-size: 0.95rem; margin-bottom: 10px; }
.news-card-body h3 a { color: var(--dark); transition: color 0.2s; }
.news-card-body h3 a:hover { color: var(--gold2); }
.news-card-body p { font-size: 0.88rem; color: var(--mid); margin-bottom: 16px; }
.news-date { font-size: 0.75rem; color: #AAA; display: flex; align-items: center; gap: 6px; }
.news-date::before { content: '◷'; }
.news-footer { margin-top: 40px; text-align: center; }

/* ── EVENTS ── */
.events-list { display: flex; flex-direction: column; gap: 0; }
.event-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.event-item:first-child { border-top: 1px solid var(--border); }
.event-item.featured { background: transparent; }
.event-date-box {
  background: var(--green2); color: var(--white);
  text-align: center; padding: 10px 8px;
  border-left: 3px solid var(--gold);
}
.event-date-box .day { display: block; font-family: 'Cinzel', serif; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date-box .mon { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-lt); margin-top: 2px; }
.event-info h4 { font-size: 0.95rem; margin-bottom: 6px; }
.event-info h4 a { color: inherit; transition: color 0.2s; }
.event-info h4 a:hover { color: var(--gold2); }
.event-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.event-meta span { font-size: 0.80rem; color: var(--mid); }
.event-item.featured .event-info h4 { color: var(--green); }
.event-badge {
  font-family: 'Cinzel', serif; font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px; border: 1px solid var(--border);
  color: var(--mid); white-space: nowrap;
}
.event-badge.gold { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-photo {
  width: 100%; height: 460px; object-fit: cover; object-position: center;
  display: block; box-shadow: var(--shadow);
}
.about-text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.about-text p { color: var(--mid); margin-bottom: 16px; font-size: 0.95rem; }
.founders {
  margin-top: 24px; padding: 18px 20px;
  background: var(--cream); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.founders h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold2); margin-bottom: 10px; }
.founders ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.founders li { font-size: 0.85rem; color: var(--mid); padding: 2px 0; }

/* ── CTA BAND ── */
.cta-band {
  position: relative;
  padding: 80px 0;
  background-color: var(--green2);
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpolygon fill='rgba(0,0,0,0.25)' points='0,200 0,120 150,40 280,90 380,20 520,80 620,10 720,70 860,5 980,60 1100,30 1200,80 1200,200'/%3E%3C/svg%3E") no-repeat bottom center / 100% 100%;
  z-index: 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band .section-label { color: var(--gold-lt); text-align: center; }
.cta-band h2 { font-size: 2rem; color: var(--white); margin-bottom: 14px; text-align: center; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 32px; text-align: center; line-height: 1.7; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ── */
#contatti { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow: hidden; }
.contact-grid > * { min-width: 0; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; background: var(--green2); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item > div:not(.contact-icon) { min-width: 0; }
.contact-item h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold2); margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--mid); overflow-wrap: break-word; }
.contact-item a { color: var(--green); font-weight: 700; word-break: break-all; }
.contact-item a:hover { color: var(--gold2); }
.contact-form { background: var(--white); padding: 32px; border: 1px solid var(--border); border-top: 3px solid var(--gold); }
.contact-form h3 { font-size: 1.05rem; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mid); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  background: var(--cream); font-family: 'Lato', sans-serif;
  font-size: 0.9rem; color: var(--dark); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.field-error { display: none; font-size: 0.75rem; color: #c0392b; margin-top: 4px; }
.form-msg { padding: 12px 16px; border-radius: 2px; font-size: 0.88rem; margin-bottom: 16px; }
.form-msg--ok  { background: #eaf7ee; border-left: 3px solid #27ae60; color: #1a5c32; }
.form-msg--err { background: #fdf0ef; border-left: 3px solid #c0392b; color: #7b1e1e; }

/* ── FOOTER ── */
footer { background: var(--dark); border-top: 2px solid var(--gold); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: #888; line-height: 1.7; margin-top: 16px; }
.footer-brand p a { color: #888; transition: color 0.2s; }
.footer-brand p a:hover { color: var(--gold); }
.footer-brand .logo-wrap { display: flex; align-items: center; gap: 14px; }
.footer-brand .logo-text strong { color: var(--white); font-size: 0.88rem; }
.footer-brand .logo-text span { color: var(--gold2); }
.footer-col h4 { font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold2); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; color: #888; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid #2A2420; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.80rem; color: #666; }
.footer-version { margin-left: 10px; font-size: 0.70rem; color: #555; opacity: 0.7; }
.fsocial { display: flex; gap: 12px; }
.fsocial a { width: 44px; height: 44px; border: 1px solid #2A2420; color: #888; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: border-color 0.2s, color 0.2s; }
.fsocial a:hover { border-color: var(--gold); color: var(--gold); }

/* ── FAQ ── */
#faq { background: var(--cream); }
.faq-list { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark);
  padding: 18px 36px 18px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 0 20px 0;
}
.faq-answer p {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.75;
}
.faq-answer a { color: var(--gold2); text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  header .container { padding: 0 16px; }
  .news-grid { columns: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-item { grid-template-columns: 70px 1fr; }
  .event-badge { display: none; }
  .hero {
    background-image: none !important; /* batte l'inline style stagionale su .hero: su mobile si usa <img> in .hero-right, non lo sfondo */
    display: flex; flex-direction: column;
    height: auto; min-height: auto; max-height: none;
    overflow: visible;
  }
  .hero::before { display: none; }
  .hero::after  { display: none; }
  .hero-right {
    display: block;
    order: -1;
    width: 100%;
    flex-shrink: 0;
    line-height: 0;
  }
  .hero-right img { width: 100%; height: auto; display: block; }
  .hero-left { flex: none; position: static; justify-content: flex-start; padding: 10px 24px 44px; height: auto; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 640px) {
  .hero h1 { margin-bottom: 14px; }
  .hero-eyebrow { margin-bottom: 14px; }
  /* Solo Chrome su iOS (classe ua-crios da header.php): viewport più corta per via delle toolbar */
  html.ua-crios .hero h1 { font-size: 2rem; }
  .header-inner { height: 78px; }
  .logo-wrap img { width: 70px !important; height: 70px !important; }
  .footer-brand .logo-wrap img { width: 110px !important; height: 110px !important; }
  .logo-text strong { font-size: clamp(0.62rem, calc(4.85vw - 0.45rem), 0.82rem); letter-spacing: 0.02em; }
  .logo-text span { font-size: 0.64rem; }
  .hamburger { display: flex; }
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--dark); padding: 16px 0;
    border-top: 1px solid #2A2420; z-index: 99;
  }
  nav.open a { padding: 12px 24px; border-bottom: none; border-left: 2px solid transparent; color: #CCC; font-size: clamp(0.70rem, calc(7.76vw - 1.05rem), 0.95rem); }
  nav.open a:hover { border-left-color: var(--gold); color: var(--gold); }
  .stats-bar { margin-top: 0; }
  .stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid #2A2420; }
  .stat-item:nth-child(odd) { border-right: 1px solid #2A2420; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .news-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .contact-form { padding: 20px; }
  .contact-item a { font-size: 0.78rem; }
  .contact-item p.contact-fed, .contact-item p.contact-fed a { font-size: 0.78rem; overflow-wrap: normal; }
  .captcha-wrapper { padding: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; }
  .footer-bottom p { word-break: break-word; max-width: 100%; }
  .footer-dash { display: none; }
  .footer-rights { display: block; }
}

/* ── Hero notizia portrait ── */
.notizia-hero--P {
  height: auto;
  display: flex;
  justify-content: center;
  padding: 48px 0 0;
  overflow: visible;
}
.notizia-hero--P img {
  width: auto;
  height: auto;
  max-width: min(460px, 90vw);
  max-height: 80vh;
  object-fit: unset;
  display: block;
}

/* ── GALLERY GRID ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px; }
.gallery-item { cursor: pointer; overflow: hidden; aspect-ratio: 3/2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── LIGHTBOX ── */
.lbx { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; }
.lbx.is-open { display: flex; }
.lbx-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.93); }
.lbx-figure { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
              max-width: 92vw; max-height: 92vh; }
.lbx-img { max-width: 90vw; max-height: 80vh; object-fit: contain; display: block; }
.lbx-caption { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 12px; text-align: center;
               max-width: 600px; line-height: 1.5; }
.lbx-counter { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 6px; }
.lbx-close { position: fixed; top: 16px; right: 20px; z-index: 2; background: none; border: none;
             color: rgba(255,255,255,0.8); font-size: 1.8rem; cursor: pointer; line-height: 1;
             transition: color 0.15s; padding: 4px 8px; }
.lbx-prev, .lbx-next { position: fixed; top: 50%; z-index: 2; background: none; border: none;
                        color: rgba(255,255,255,0.7); font-size: 3rem; cursor: pointer;
                        transform: translateY(-50%); line-height: 1; padding: 16px;
                        transition: color 0.15s; }
.lbx-prev { left: 0; }
.lbx-next { right: 0; }
.lbx-close:hover, .lbx-prev:hover, .lbx-next:hover { color: #fff; }
@media (max-width: 600px) {
  .lbx-prev { font-size: 2rem; padding: 8px; }
  .lbx-next { font-size: 2rem; padding: 8px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── FOTO2 (seconda foto in articoli/eventi) ── */
.foto2-section { margin: 40px 0 0; }
.foto2-section figure { margin: 0; }
.foto2-section img { max-width: 100%; display: block; margin: 0 auto; }
.foto2-didascalia { font-size: 0.88rem; color: var(--mid); text-align: center; margin-top: 10px;
                    font-style: italic; line-height: 1.5; }

/* ── GALLERY INLINE (in notizia/evento) ── */
.inline-gallery { margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--border); }
.inline-gallery-label { font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.10em;
                        text-transform: uppercase; color: var(--mid); margin-bottom: 16px; display: block; }
.inline-gallery-title { font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600;
                        color: var(--dark); margin-bottom: 20px; }

/* ═══════════════════════════════════
   BANNER — Chiuso per ferie (targa appesa sulla hero)
═══════════════════════════════════ */
.ferie-sign {
  position: absolute; top: 34px; right: 56px; z-index: 5;
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream2) 100%);
  border: 3px solid var(--gold); border-radius: 10px;
  padding: 16px 32px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(196,149,32,0.35);
  animation: ferieSwing 4.5s ease-in-out infinite; transform-origin: top center;
}
.ferie-rope { position: absolute; top: -30px; width: 2px; height: 30px; background: var(--gold); opacity: .85; }
.ferie-rope-l { left: 26%; transform: rotate(9deg); transform-origin: bottom; }
.ferie-rope-r { right: 26%; transform: rotate(-9deg); transform-origin: bottom; }
.ferie-deco { font-size: 1.7rem; color: var(--gold); line-height: 1; }
.ferie-text { display: flex; flex-direction: column; gap: 3px; }
.ferie-title {
  font-family: 'Cinzel', serif; font-size: clamp(1.1rem, 1.9vw, 1.55rem); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); line-height: 1.15;
}
.ferie-sub { font-size: 0.88rem; color: var(--gold2); font-weight: 700; }
@keyframes ferieSwing {
  0%, 100% { transform: rotate(-1.1deg); }
  50%      { transform: rotate(1.1deg); }
}
/* Tablet/mobile: la foto va a tutta larghezza in alto → targa allineata a sinistra,
   così il re sulla destra resta ben visibile */
@media (max-width: 900px) {
  .ferie-sign {
    top: 26px; right: auto; left: 14px;
    transform: rotate(-1deg);
    animation: none;
    padding: 16px 26px; gap: 14px;
    max-width: calc(100% - 28px);
  }
  .ferie-rope-l { left: 20%; } .ferie-rope-r { right: 20%; }
}
@media (max-width: 420px) {
  .ferie-sign { top: 16px; left: 10px; max-width: calc(100% - 20px); }
  .ferie-deco { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ferie-sign { animation: none; } }
